ok
Direktori : /usr/lib64/python2.7/site-packages/simplejson/tests/ |
Current File : //usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyc |
� ���Sc @ s� d d l Z d d l Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d e j f d � � YZ d S( i����Nt ForJsonc B s e Z d � Z RS( c C s i d d 6S( Ni t for_json( ( t self( ( sD /usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyR s ( t __name__t __module__R ( ( ( sD /usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyR s t NestedForJsonc B s e Z d � Z RS( c C s i t � d 6S( Nt nested( R ( R ( ( sD /usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyR s ( R R R ( ( ( sD /usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyR s t ForJsonListc B s e Z d � Z RS( c C s d g S( Nt list( ( R ( ( sD /usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyR s ( R R R ( ( ( sD /usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyR s t DictForJsonc B s e Z d � Z RS( c C s i d d 6S( Ni t alpha( ( R ( ( sD /usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyR s ( R R R ( ( ( sD /usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyR s t ListForJsonc B s e Z d � Z RS( c C s d g S( NR ( ( R ( ( sD /usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyR s ( R R R ( ( ( sD /usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyR s t TestForJsonc B sw e Z e 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 sP | d k r t j | � } n t j | d | �} | j t j | � | � d S( NR ( t Nonet jsont dumpst assertEqualt loads( R t objt otherR t s( ( sD /usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyt assertRoundTrip s c C s | j t � t � j � � d S( N( R R R ( R ( ( sD /usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyt( test_for_json_encodes_stand_alone_object) s c C s. | j i t � d 6i t � j � d 6� d S( Nt hooray( R R R ( R ( ( sD /usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyt+ test_for_json_encodes_object_nested_in_dict. s c C sF | j i d t � d d g d 6i d t � j � d d g d 6� d S( Ni i i R ( R R R ( R ( ( sD /usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyt7 test_for_json_encodes_object_nested_in_list_within_dict3 s c C s% | j t � i i d d 6d 6� d S( Ni R R ( R R ( R ( ( sD /usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyt1 test_for_json_encodes_object_nested_within_object8 s c C s | j t � t � j � � d S( N( R R R ( R ( ( sD /usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyt test_for_json_encodes_list= s c C s. | j i t � d 6i t � j � d 6� d S( NR ( R R R ( R ( ( sD /usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyt( test_for_json_encodes_list_within_objectB s c C s, | j t d d � t d d � j � � d S( Nt ai ( R R R ( R ( ( sD /usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyt# test_for_json_encodes_dict_subclassG s c C s, | j t d g � t d g � j � � d S( Nt l( R R R ( R ( ( sD /usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyt# test_for_json_encodes_list_subclassL s c C sA x: d t f D], } | j t d d � i d d 6d | �q Wd S( NR i R ( R t FalseR R ( R R ( ( sD /usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyt4 test_for_json_ignored_if_not_true_with_dict_subclassQ s c C s= x6 d t f D]( } | j t d g � d g d | �q Wd S( NR R ( R R! R R ( R R ( ( sD /usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyt4 test_for_json_ignored_if_not_true_with_list_subclassX s c C s<