ó ÖÉÎSc@s£ddlZddlZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd „ƒYZd e fd „ƒYZ d ej fd „ƒYZ dS(iÿÿÿÿNtForJsoncBseZd„ZRS(cCs idd6S(Nitfor_json((tself((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyRs(t__name__t __module__R(((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyRst NestedForJsoncBseZd„ZRS(cCsitƒd6S(Ntnested(R(R((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyR s(RRR(((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyR st ForJsonListcBseZd„ZRS(cCsdgS(Ntlist((R((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyRs(RRR(((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyRst DictForJsoncBseZd„ZRS(cCs idd6S(Nitalpha((R((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyRs(RRR(((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyR st ListForJsoncBseZd„ZRS(cCsdgS(NR((R((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyRs(RRR(((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyR st TestForJsoncBsweZed„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d„Z d „Z d „Z d „ZRS( cCsP|dkrtj|ƒ}ntj|d|ƒ}|jtj|ƒ|ƒdS(NR(tNonetjsontdumpst assertEqualtloads(RtobjtotherRts((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pytassertRoundTrips   cCs |jtƒtƒjƒƒdS(N(RRR(R((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyt(test_for_json_encodes_stand_alone_object)scCs.|jitƒd6itƒjƒd6ƒdS(Nthooray(RRR(R((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyt+test_for_json_encodes_object_nested_in_dict.s cCsF|jidtƒddgd6idtƒjƒddgd6ƒdS(NiiiR(RRR(R((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyt7test_for_json_encodes_object_nested_in_list_within_dict3scCs%|jtƒiidd6d6ƒdS(NiRR(RR(R((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyt1test_for_json_encodes_object_nested_within_object8scCs |jtƒtƒjƒƒdS(N(RRR(R((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyttest_for_json_encodes_list=scCs.|jitƒd6itƒjƒd6ƒdS(NR(RRR(R((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyt(test_for_json_encodes_list_within_objectBs cCs,|jtddƒtddƒjƒƒdS(Ntai(RR R(R((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyt#test_for_json_encodes_dict_subclassGs cCs,|jtdgƒtdgƒjƒƒdS(Ntl(RR R(R((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyt#test_for_json_encodes_list_subclassLs cCsAx:dtfD],}|jtddƒidd6d|ƒq WdS(NRiR(R tFalseRR (RR((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyt4test_for_json_ignored_if_not_true_with_dict_subclassQs   cCs=x6dtfD](}|jtdgƒdgd|ƒq WdS(NRR(R R!RR (RR((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyt4test_for_json_ignored_if_not_true_with_list_subclassXs   cCs<|jttjtƒƒ|jttjtƒdtƒdS(NR(t assertRaisest TypeErrorRRRR!(R((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyt6test_raises_typeerror_if_for_json_not_true_with_object_s(RRtTrueRRRRRRRRR R"R#R&(((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyR s          ( tunittestt simplejsonRtobjectRRRtdictR RR tTestCaseR (((sD/usr/lib64/python2.7/site-packages/simplejson/tests/test_for_json.pyts