AlkantarClanX12
Current Path : /proc/self/root/usr/lib/python2.7/site-packages/pip/_vendor/webencodings/ |
Current File : //proc/self/root/usr/lib/python2.7/site-packages/pip/_vendor/webencodings/tests.pyc |
� ��abc @ s� d Z d d l m Z d d l m Z m Z m Z m Z m Z m Z m Z m Z m Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d S( u� webencodings.tests ~~~~~~~~~~~~~~~~~~ A basic test suite for Encoding. :copyright: Copyright 2012 by Simon Sapin :license: BSD, see LICENSE for details. i����( t unicode_literalsi ( t lookupt LABELSt decodet encodet iter_decodet iter_encodet IncrementalDecodert IncrementalEncodert UTF8c O s: y | | | � Wn | k r% d SXt d | � � d S( Nu Did not raise %s.( t AssertionError( t exceptiont functiont argst kwargs( ( sB /usr/lib/python2.7/site-packages/pip/_vendor/webencodings/tests.pyt assert_raises s c C s� t d � j d k s t � t d � j d k s6 t � t d � j d k sQ t � t d � j d k sl t � t d � j d k s� t � t d � j d k s� t � t d � j d k s� t � t d � d k s� t � t d � d k s� t � t d � j d k st � t d � j d k s#t � t d � j d k s>t � t d � j d k sYt � t d � d k sqt � t d � d k s�t � d S( Nu utf-8u Utf-8u UTF-8u utf8u utf8 u utf8 u u8u utf-8 u US-ASCIIu windows-1252u iso-8859-1u latin1u LATIN1u latin-1u LATİN1( R t nameR t None( ( ( sB /usr/lib/python2.7/site-packages/pip/_vendor/webencodings/tests.pyt test_labels s c C s� xVt D]N} t d | � d t | � f k s4 t � t d | � d k sO t � xs d d d g D]b } t d g | | � \ } } t | � g k s� t � t t d g | | � � g k s_ t � q_ Wt | � } | j d � d k s� t � | j d d t �d k s t � t | � } | j d � d k s4t � | j d d t �d k s t � q Wx5 t t j � � D]! } t | � j | k slt � qlWd S( Nt u i i i t final( R R R R R R t listR R t TrueR t sett valuesR ( t labelt repeatt outputt _t decodert encoderR ( ( sB /usr/lib/python2.7/site-packages/pip/_vendor/webencodings/tests.pyt test_all_labels0 s ',!%c C sp t t t d d � t t t d d � t t t g d � t t t g d � t t t d � t t t d � d S( Ns éu invalidu é( R t LookupErrorR R R R R R ( ( ( sB /usr/lib/python2.7/site-packages/pip/_vendor/webencodings/tests.pyt test_invalid_labelC s c C sz t d d � d t d � f k s'