ok
Mini Shell
�
��abc@s�dZddlmZddlmZmZmZmZmZm Z m
Z
mZmZd�Z
d�Zd�Zd�Zd �Zd
�Zd�Zd�Zd
�ZdS(u�
webencodings.tests
~~~~~~~~~~~~~~~~~~
A basic test suite for Encoding.
:copyright: Copyright 2012 by Simon Sapin
:license: BSD, see LICENSE for details.
i����(tunicode_literalsi( tlookuptLABELStdecodetencodetiter_decodetiter_encodetIncrementalDecodertIncrementalEncodertUTF8cOs:y|||�Wn|k
r%dSXtd|��dS(NuDid not raise %s.(tAssertionError(t exceptiontfunctiontargstkwargs((sB/usr/lib/python2.7/site-packages/pip/_vendor/webencodings/tests.pyt
assert_raisess
cCs�td�jdkst�td�jdks6t�td�jdksQt�td�jdkslt�td�jdks�t�td�jdks�t�td�jdks�t�td�dks�t�td�dks�t�td �jd
kst�td�jd
ks#t�td�jd
ks>t�td
�jd
ksYt�td�dksqt�td�dks�t�dS(Nuutf-8uUtf-8uUTF-8uutf8uutf8 u
utf8 uu8uutf-8 uUS-ASCIIuwindows-1252u
iso-8859-1ulatin1uLATIN1ulatin-1uLATİN1(RtnameR
tNone(((sB/usr/lib/python2.7/site-packages/pip/_vendor/webencodings/tests.pyttest_labelsscCs�xVtD]N}td|�dt|�fks4t�td|�dksOt�xsdddgD]b}tdg||�\}}t|�gks�t�ttdg||��gks_t�q_Wt|�}|jd�dks�t�|jddt �dks
t�t
|�}|jd�dks4t�|jddt �dkst�qWx5ttj��D]!}t|�j
|kslt�qlWdS(Ntuiiitfinal(RRRR
RRtlistRRtTrueRtsettvaluesR(tlabeltrepeattoutputt_tdecodertencoderR((sB/usr/lib/python2.7/site-packages/pip/_vendor/webencodings/tests.pyttest_all_labels0s
',!%cCsptttdd�tttdd�tttgd�tttgd�tttd�tttd�dS(Nséuinvalidué(RtLookupErrorRRRRRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/webencodings/tests.pyttest_invalid_labelCscCsztdd�dtd�fks't�tdtd��dtd�fksTt�tdd�dtd�fks{t�tdt�dtd�fks�t�tdd�dtd�fks�t�td d�dtd�fks�t�td
d�dtd�fkst�tdd�dtd
�fks>t�tdd�dtd�fkset�tdd�dtd
�fks�t�tdd�dtd�fks�t�tdd�dtd
�fks�t�tdd�dtd
�fkst�tdd�dtd�fks(t�tdd�dtd
�fksOt�tdd�dtd
�fksvt�dS(Ns�ulatin1u€séuutf8uéuasciiuésés���uutf-16bes���uutf-16les���us���s�uUTF-16BEs�uUTF-16LEuUTF-16(RRR
R (((sB/usr/lib/python2.7/site-packages/pip/_vendor/webencodings/tests.pyttest_decodeLs '-'''''''''''''cCs�tdd�dkst�tdd�dks6t�tdd�dksQt�tdd�dkslt�tdd�dks�t�tdd �d
ks�t�dS(Nuéulatin1s�uutf8séuutf-16s�uutf-16leuutf-16bes�(RR
(((sB/usr/lib/python2.7/site-packages/pip/_vendor/webencodings/tests.pyttest_encodebscCs>d�}|gd�dks$t�|dgd�dksBt�|dgd�dks`t�|dgd�dks~t�|d d
gd�dks�t�|ddgd�dks�t�|d
gd�dks�t�|dgd�dks�t�|dddgd�dks t�|dddgd�dksDt�|ddddddgd�dksqt�|dgd�dks�t�|dgd�dks�t�|dgd�dks�t�|dgd�dks�t�|ddddddgd�dkst�|ddd
gd�d ks:t�dS(!NcSs"t||�\}}dj|�S(Nu(Rtjoin(tinputtfallback_encodingRt _encoding((sB/usr/lib/python2.7/site-packages/pip/_vendor/webencodings/tests.pytiter_decode_to_stringlsulatin1uRs�uéthellouhellothetllothelltoséuéséss�s�taua�s�s���s�uï»s���s���s�s��ssh�ux-user-defineduhllo(R
(R(((sB/usr/lib/python2.7/site-packages/pip/_vendor/webencodings/tests.pyttest_iter_decodeks. !!!!**cCsfdjtgd��dks$t�djtdgd��dksKt�djtdgd��dksrt�djtddddgd��dks�t�djtddddgd��dks�t�djtddddgd��dkst�djtddddgd ��d
ks2t�djtddddgd
��dksbt�dS(NRulatin1uués�uutf-16s�uutf-16leuutf-16bes�uhulloux-user-definedsh�llo(R$RR
(((sB/usr/lib/python2.7/site-packages/pip/_vendor/webencodings/tests.pyttest_iter_encode�s$''0000 cCs^d}d}d}d}t|d�|td�fks?t�t|d�|ksZt�dS(Ns2,O�#�ɻtϨ�u2,O#ttaauaaux-user-defined(RRR
R(tencodedtdecoded((sB/usr/lib/python2.7/site-packages/pip/_vendor/webencodings/tests.pyttest_x_user_defined�s'N(t__doc__t
__future__RRRRRRRRRRR RRRR!R"R#R/R0R4(((sB/usr/lib/python2.7/site-packages/pip/_vendor/webencodings/tests.pyt<module>s@
Zerion Mini Shell 1.0