| 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 : |
ó
ìUzMc @ sb d d l Z d d l m Z d d l m Z d d l Z d d l m Z d e f d „ ƒ YZ d S( iÿÿÿÿN( t TestCase( t StringIO( t OrderedDictt
TestDecodec B s} e Z e e d ƒ s! d „ Z n d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
d „ Z d „ Z d
„ Z
d „ Z RS( t assertIsc C s$ | j | | k d | | f ƒ d S( Ns %r is %r( t
assertTrue( t selft at b( ( s@ /usr/lib/python2.7/dist-packages/simplejson/tests/test_decode.pyR
s c C sN t j d d t j ƒ} | j t | t j ƒ ƒ | j | t j d ƒ ƒ d S( Ns 1.1t parse_float( t jsont loadst decimalt DecimalR t
isinstancet assertEquals( R t rval( ( s@ /usr/lib/python2.7/dist-packages/simplejson/tests/test_decode.pyt test_decimal
s c C s? t j d d t ƒ} | j t | t ƒ ƒ | j | d ƒ d S( Nt 1t parse_intg ð?( R
R t floatR R R ( R R ( ( s@ /usr/lib/python2.7/dist-packages/simplejson/tests/test_decode.pyt
test_float s c C s1 t j d ƒ } | j | i d d 6d d 6ƒ d S( Ns, { "key" : "value" , "k":"v" }t valuet keyt vt k( R
R R ( R R ( ( s@ /usr/lib/python2.7/dist-packages/simplejson/tests/test_decode.pyt test_decoder_optimizations s c C ss d } | j t j | ƒ t | ƒ ƒ d } | j t j | ƒ t | ƒ ƒ d } | j t j | ƒ t | ƒ ƒ d S( Ns {}s []s ""( t assertEqualR
R t eval( R t s( ( s@ /usr/lib/python2.7/dist-packages/simplejson/tests/test_decode.pyt test_empty_objects s c C sý d } d d d d d d d g } | j t j | ƒ t | ƒ ƒ | j t j | d d „ ƒ| ƒ | j t j t | ƒ d d „ ƒ| ƒ t j | d t ƒ} | j | t | ƒ ƒ | j t | ƒ t ƒ | j t j | d t d d „ ƒt | ƒ ƒ d S( Ns? {"xkd":1, "kcw":2, "art":3, "hxm":4, "qrt":5, "pad":6, "hoy":7}t xkdi t kcwi t arti t hxmi t qrti t padi t hoyi t object_pairs_hookc S s | S( N( ( t x( ( s@ /usr/lib/python2.7/dist-packages/simplejson/tests/test_decode.pyt <lambda>+ s c S s | S( N( ( R' ( ( s@ /usr/lib/python2.7/dist-packages/simplejson/tests/test_decode.pyR( - s t object_hookc S s d S( N( t None( R' ( ( s@ /usr/lib/python2.7/dist-packages/simplejson/tests/test_decode.pyR( 4 s ( R i ( R i ( R! i ( R"