MOON
Server: Apache
System: Linux server30c.hostingraja.org 3.10.0-962.3.2.lve1.5.63.el7.x86_64 #1 SMP Fri Oct 8 12:03:35 UTC 2021 x86_64
User: jibhires (1887)
PHP: 8.1.30
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open, allow_url_fopen, symlink, escapeshellcmd, pcntl_exec
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/webencodings/__pycache__/tests.cpython-37.opt-1.pyc
B

�L�X��@s�dZddlmZddlmZmZmZmZmZm	Z	m
Z
mZmZdd�Z
dd�Zd	d
�Zdd�Zd
d�Zdd�Zdd�Zdd�Zdd�ZdS)z�

    webencodings.tests
    ~~~~~~~~~~~~~~~~~~

    A basic test suite for Encoding.

    :copyright: Copyright 2012 by Simon Sapin
    :license: BSD, see LICENSE for details.

�)�unicode_literals�)	�lookup�LABELS�decode�encode�iter_decode�iter_encode�IncrementalDecoder�IncrementalEncoder�UTF8cOs4y|||�Wn|k
r"dSXtd|��dS)NzDid not raise %s.)�AssertionError)Z	exceptionZfunction�args�kwargs�r�C/opt/alt/python37/lib/python3.7/site-packages/webencodings/tests.py�
assert_raisess
rcCsdS)Nrrrrr�test_labelssrcCsZx>tD]6}x dD]}tdg||�\}}qWt|�}t|�}qWxtt���D]}qNWdS)N)rr��)rrr
r�set�values)Zlabel�repeat�output�_�decoder�encoder�namerrr�test_all_labels0s

rcCsTtttdd�tttdd�tttgd�tttgd�tttd�tttd�dS)NséZinvalid�é)r�LookupErrorrrrr	r
rrrrr�test_invalid_labelCsr!cCsdS)Nrrrrr�test_decodeLsr"cCsdS)Nrrrrr�test_encodebsr#cCsdd�}dS)NcSst||�\}}d�|�S)N�)r�join)�inputZfallback_encodingrZ	_encodingrrr�iter_decode_to_stringlsz/test_iter_decode.<locals>.iter_decode_to_stringr)r'rrr�test_iter_decodeksr(cCsdS)Nrrrrr�test_iter_encode�sr)cCsd}d}d}d}dS)Ns2,O�#�ɻtϨ�u2,O#tsaaZaar)ZencodedZdecodedrrr�test_x_user_defined�s
r*N)�__doc__Z
__future__rr$rrrrrr	r
rrrrrr!r"r#r(r)r*rrrr�<module>s,