Sindbad~EG File Manager

Current Path : /lib/python3.6/site-packages/webencodings/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/webencodings/__pycache__/tests.cpython-36.opt-1.pyc

3

�O�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�/usr/lib/python3.6/tests.py�
assert_raisess
rcCsdS)Nrrrrr�test_labelssrcCsZx>tD]6}x dD]}tdg||�\}}qWt|�}t|�}qWxttj��D]}qNWdS)Nrr��)rrr)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||�\}}dj|�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,			

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists