| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/simplejson/tests/ |
Upload File : |
ó
Æ„Nc @ s6 d d l m Z d d l Z d e f d „ ƒ YZ d S( iÿÿÿÿ( t TestCaseNt 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 d
„ Z d „ Z RS( c C sY t j d d ƒ } d } | j d ƒ } | j | ƒ } | j | ƒ } | j | | ƒ d S( Nt encodings utf-8u αΩ( t jsont JSONEncodert encodet assertEquals( t selft encodert ut st jut js( ( sA /usr/lib/python2.7/dist-packages/simplejson/tests/test_unicode.pyt test_encoding1 s c C sS d } | j d ƒ } t j | d d ƒ} t j | d d ƒ} | j | | ƒ d S( Nu αΩs utf-8R ( R R t dumpsR ( R R R
R R ( ( sA /usr/lib/python2.7/dist-packages/simplejson/tests/test_unicode.pyt test_encoding2 s
c C s) d } t j | ƒ } | j | d ƒ d S( Nu αΩs "\u03b1\u03a9"( R R R ( R R t j( ( sA /usr/lib/python2.7/dist-packages/simplejson/tests/test_unicode.pyt test_encoding3 s c C s, d } t j | g ƒ } | j | d ƒ d S( Nu αΩs ["\u03b1\u03a9"]( R R R ( R R R ( ( sA /usr/lib/python2.7/dist-packages/simplejson/tests/test_unicode.pyt test_encoding4 s c C s7 d } t j | d t ƒ} | j | d | d ƒ d S( Nu αΩt ensure_asciiu "( R R t FalseR ( R R R ( ( sA /usr/lib/python2.7/dist-packages/simplejson/tests/test_unicode.pyt test_encoding5 s c C s: d } t j | g d t ƒ} | j | d | d ƒ d S( Nu αΩR u ["u "]( R R R R ( R R R ( ( sA /usr/lib/python2.7/dist-packages/simplejson/tests/test_unicode.pyt test_encoding6$ s c C sB d } | j t j | ƒ d ƒ | j t j | d t ƒd ƒ d S( Nu ð„ s "\ud834\udd20"R u "ð„ "( R R R R ( R R ( ( sA /usr/lib/python2.7/dist-packages/simplejson/tests/test_unicode.pyt test_big_unicode_encode) s c C sD d } | j t j d | d ƒ | ƒ | j t j d ƒ | ƒ d S( Nu zð„ xt "s "z\ud834\udd20x"( R R t loads( R R ( ( sA /usr/lib/python2.7/dist-packages/simplejson/tests/test_unicode.pyt test_big_unicode_decode. s !c C sP xI t d d ƒ D]8 } t | ƒ } d | f } | j t j | ƒ | ƒ q Wd S( Ni iÿ× s "\u%04x"( t ranget unichrR R R ( R t iR R
( ( sA /usr/lib/python2.7/dist-packages/simplejson/tests/test_unicode.pyt test_unicode_decode3 s
c C sä d } d d d d d d d g } | j t j | ƒ t | ƒ ƒ | j t j | d d „ ƒ| ƒ t j | d t j ƒ} | j | t j | ƒ ƒ | j t | ƒ t j ƒ | j t j | d t j d d „ ƒt j | ƒ ƒ 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( ( sA /usr/lib/python2.7/dist-packages/simplejson/tests/test_unicode.pyt <lambda>? s t object_hookc S s d S( N( t None( R ( ( sA /usr/lib/python2.7/dist-packages/simplejson/tests/test_unicode.pyR! F s ( u xkdi ( u kcwi ( u arti ( u hxmi ( u qrti ( u padi ( u hoyi ( t assertEqualR R t evalt OrderedDictt type( R R
t pt od( ( sA /usr/lib/python2.7/dist-packages/simplejson/tests/test_unicode.pyt# test_object_pairs_hook_with_unicode: s " c C s- | j t j d j d ƒ ƒ i d d 6ƒ d S( Nu {"a": "é"}s utf-8u ét a( R R R R ( R ( ( sA /usr/lib/python2.7/dist-packages/simplejson/tests/test_unicode.pyt test_default_encodingJ s c C se | j t t j d ƒ ƒ t ƒ | j t t j d ƒ ƒ t ƒ | j t t j d ƒ d ƒ t ƒ d S( Nu ""u "a"u ["a"]i ( R R' R R t unicode( R ( ( sA /usr/lib/python2.7/dist-packages/simplejson/tests/test_unicode.pyt test_unicode_preservationN s c C s˜ | j t t j g d t ƒƒ t ƒ | j t t j d d t ƒƒ t ƒ | j t t j i d t ƒƒ t ƒ | j t t j d d t ƒƒ t ƒ d S( NR i t ( R R' R R R R- ( R ( ( sA /usr/lib/python2.7/dist-packages/simplejson/tests/test_unicode.pyt' test_ensure_ascii_false_returns_unicodeS s %%%c C sš i d d 6} i d d 6} d } d } | j t j | ƒ | ƒ | j t j | ƒ | ƒ | j t j | d t ƒ| ƒ | j t j | d t ƒ| ƒ d S( Ns Arrêt sur imagesu quuxu Arrêt sur imagess! {"quux": "Arr\u00eat sur images"}u {"quux": "Arrêt sur images"}R ( R R R R ( R t doc1t doc2t doc_asciit doc_unicode( ( sA /usr/lib/python2.7/dist-packages/simplejson/tests/test_unicode.pyt+ test_ensure_ascii_false_bytestring_encodingZ s
c C s d } | j d ƒ } d } | j t j | ƒ | ƒ | j t j | ƒ | ƒ | j t j | d t ƒ| ƒ | j t j | d t ƒ| ƒ d S( Nu 

t utf8s "\u2029\u2028"R ( R R R R R ( R t s1t s2t expect( ( sA /usr/lib/python2.7/dist-packages/simplejson/tests/test_unicode.pyt$ test_ensure_ascii_linebreak_encodinge s ( t __name__t
__module__R
R R R R R R R R R* R, R. R0 R5 R: ( ( ( sA /usr/lib/python2.7/dist-packages/simplejson/tests/test_unicode.pyR s ( t unittestR t
simplejsonR R ( ( ( sA /usr/lib/python2.7/dist-packages/simplejson/tests/test_unicode.pyt <module> s