%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/json/tests/ |
Current File : //usr/local/lib/python2.7/json/tests/test_unicode.pyo |
ó Oêá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( ( s3 /usr/local/lib/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 ( ( s3 /usr/local/lib/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( ( s3 /usr/local/lib/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 ( ( s3 /usr/local/lib/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 ( ( s3 /usr/local/lib/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 ( ( s3 /usr/local/lib/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 ( ( s3 /usr/local/lib/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 ( ( s3 /usr/local/lib/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 ( ( s3 /usr/local/lib/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( ( s3 /usr/local/lib/python2.7/json/tests/test_unicode.pyt <lambda>>