ok
Direktori : /lib64/python2.7/site-packages/simplejson/tests/ |
Current File : //lib64/python2.7/site-packages/simplejson/tests/test_decode.pyo |
� ���Sc @@ sr d d l m Z d d l Z d d l m Z d d l Z d d l m Z d d l m Z d e f d � � YZ d S( i ( t absolute_importN( 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 d � Z RS( t assertIsc C@ s$ | j | | k d | | f � d S( Ns %r is %r( t assertTrue( t selft at b( ( sB /usr/lib64/python2.7/site-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 assertEqual( R t rval( ( sB /usr/lib64/python2.7/site-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 ( ( sB /usr/lib64/python2.7/site-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 ( ( sB /usr/lib64/python2.7/site-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 ""( R R R t eval( R t s( ( sB /usr/lib64/python2.7/site-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( ( sB /usr/lib64/python2.7/site-packages/simplejson/tests/test_decode.pyt <lambda>, s c S@ s | S( N( ( R'