%PDF- %PDF-
Direktori : /proc/self/root/opt/plesk/python/2.7/lib64/python2.7/json/tests/ |
Current File : //proc/self/root/opt/plesk/python/2.7/lib64/python2.7/json/tests/test_unicode.pyo |
� 5}�ac @ sr d d l m Z d d l m Z m Z d e f d � � YZ d e e f d � � YZ d e e f d � � YZ d S( i����( t OrderedDict( t PyTestt CTestt TestUnicodec B s} e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( c C s\ | j j d d � } d } | j d � } | j | � } | j | � } | j | | � d S( Nt encodings utf-8u αΩ( t jsont JSONEncodert encodet assertEqual( t selft encodert ut st jut js( ( s@ /opt/plesk/python/2.7/lib64/python2.7/json/tests/test_unicode.pyt test_encoding1 s c C sS d } | j d � } | j | d d �} | j | d d �} | j | | � d S( Nu αΩs utf-8R ( R t dumpsR ( R R R R R ( ( s@ /opt/plesk/python/2.7/lib64/python2.7/json/tests/test_unicode.pyt test_encoding2 s c C s) d } | j | � } | j | d � d S( Nu αΩs "\u03b1\u03a9"( R R ( R R t j( ( s@ /opt/plesk/python/2.7/lib64/python2.7/json/tests/test_unicode.pyt test_encoding3 s c C s, d } | j | g � } | j | d � d S( Nu αΩs ["\u03b1\u03a9"]( R R ( R R R ( ( s@ /opt/plesk/python/2.7/lib64/python2.7/json/tests/test_unicode.pyt test_encoding4 s c C s8 d } | j | d t �} | j | d j | � � d S( Nu αΩt ensure_asciiu "{0}"( R t FalseR t format( R R R ( ( s@ /opt/plesk/python/2.7/lib64/python2.7/json/tests/test_unicode.pyt test_encoding5 s c C s; d } | j | g d t �} | j | d j | � � d S( Nu αΩR u ["{0}"]( R R R R ( R R R ( ( s@ /opt/plesk/python/2.7/lib64/python2.7/json/tests/test_unicode.pyt test_encoding6$ s c C sB d } | j | j | � d � | j | j | d t �d � d S( Nu 𝄠s "\ud834\udd20"R u "𝄠"( R R R ( R R ( ( s@ /opt/plesk/python/2.7/lib64/python2.7/json/tests/test_unicode.pyt test_big_unicode_encode) s c C sD d } | j | j d | d � | � | j | j d � | � d S( Nu z𝄠xt "s "z\ud834\udd20x"( R t loads( R R ( ( s@ /opt/plesk/python/2.7/lib64/python2.7/json/tests/test_unicode.pyt test_big_unicode_decode. s !c C sR xK t d d � D]: } t | � } d j | � } | j | j | � | � q Wd S( Ni i�� s "\u{0:04x}"( t ranget unichrR R R ( R t iR R ( ( s@ /opt/plesk/python/2.7/lib64/python2.7/json/tests/test_unicode.pyt test_unicode_decode3 s c C s� d } d d d d d d d g } | j | j | � t | � � | j | j | d d � �| � | j | d t �} | j | t | � � | j t | � t � | j | j | d t d d � �t | � � d S( Nu? {"xkd":1, "kcw":2, "art":3, "hxm":4, "qrt":5, "pad":6, "hoy":7}u xkdi u kcwi u arti u hxmi u qrti u padi u hoyi t object_pairs_hookc S s | S( N( ( t x( ( s@ /opt/plesk/python/2.7/lib64/python2.7/json/tests/test_unicode.pyt <lambda>>