��Qc@srddlmZddlmZmZdefd��YZdeefd��YZdeefd��YZd S(
i�(tOrderedDict(tPyTesttCTesttTestUnicodecBs}eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z
d �Zd
�Zd�Z
d�ZRS(
cCs\|jjdd�}d}|jd�}|j|�}|j|�}|j||�dS(Ntencodingsutf-8uαΩ(tjsontJSONEncodertencodetassertEqual(tselftencodertutstjutjs((s-/sys/lib/python2.7/json/tests/test_unicode.pyttest_encoding1scCsSd}|jd�}|j|dd�}|j|dd�}|j||�dS(NuαΩsutf-8R(RtdumpsR(R RRR
R((s-/sys/lib/python2.7/json/tests/test_unicode.pyttest_encoding2s
cCs)d}|j|�}|j|d�dS(NuαΩs"\u03b1\u03a9"(RR(R Rtj((s-/sys/lib/python2.7/json/tests/test_unicode.pyttest_encoding3scCs,d}|j|g�}|j|d�dS(NuαΩs["\u03b1\u03a9"](RR(R RR((s-/sys/lib/python2.7/json/tests/test_unicode.pyttest_encoding4scCs8d}|j|dt�}|j|dj|��dS(NuαΩtensure_asciiu"{0}"(RtFalseRtformat(R RR((s-/sys/lib/python2.7/json/tests/test_unicode.pyttest_encoding5scCs;d}|j|gdt�}|j|dj|��dS(NuαΩRu["{0}"](RRRR(R RR((s-/sys/lib/python2.7/json/tests/test_unicode.pyttest_encoding6$scCsBd}|j|j|�d�|j|j|dt�d�dS(Nu𝄠s"\ud834\udd20"Ru"𝄠"(RRR(R R((s-/sys/lib/python2.7/json/tests/test_unicode.pyttest_big_unicode_encode)scCsDd}|j|jd|d�|�|j|jd�|�dS(Nuz𝄠xt"s"z\ud834\udd20x"(Rtloads(R R((s-/sys/lib/python2.7/json/tests/test_unicode.pyttest_big_unicode_decode.s!cCsRxKtdd�D]:}t|�}dj|�}|j|j|�|�qWdS(Nii�s"\u{0:04x}"(trangetunichrRRR(R tiRR((s-/sys/lib/python2.7/json/tests/test_unicode.pyttest_unicode_decode3scCs�d}dddddddg}|j|j|�t|��|j|j|dd��|�|j|dt�}|j|t|��|jt|�t�|j|j|dtdd��t|��dS(Nu?{"xkd":1, "kcw":2, "art":3, "hxm":4, "qrt":5, "pad":6, "hoy":7}uxkdiukcwiuartiuhxmiuqrtiupadiuhoyitobject_pairs_hookcSs|S(N((tx((s-/sys/lib/python2.7/json/tests/test_unicode.pyt<lambda>>stobject_hookcSsdS(N(tNone(R#((s-/sys/lib/python2.7/json/tests/test_unicode.pyR$Es(uxkdi(ukcwi(uarti(uhxmi(uqrti(upadi(uhoyi(RRtevalRttype(R Rtptod((s-/sys/lib/python2.7/json/tests/test_unicode.pyt#test_object_pairs_hook_with_unicode9s" cCs-|j|jdjd��idd6�dS(Nu{"a": "é"}sutf-8uéta(RRR(R ((s-/sys/lib/python2.7/json/tests/test_unicode.pyttest_default_encodingHscCs�|jt|jd��t�|jt|jd��t�|jt|jd�d�t�|jt|jd��t�dS(Nu""u"a"u["a"]is"foo"(RR(Rtunicode(R ((s-/sys/lib/python2.7/json/tests/test_unicode.pyttest_unicode_preservationLs#cCs6|jt|jdd�|jt|jdd�dS(Ns"a"uratéi(tassertRaisestUnicodeEncodeErrorRt TypeError(R ((s-/sys/lib/python2.7/json/tests/test_unicode.pyttest_bad_encodingSs(t__name__t
__module__RRRRRRRRR!R+R-R/R3(((s-/sys/lib/python2.7/json/tests/test_unicode.pyRs t
TestPyUnicodecBseZRS((R4R5(((s-/sys/lib/python2.7/json/tests/test_unicode.pyR6XstTestCUnicodecBseZRS((R4R5(((s-/sys/lib/python2.7/json/tests/test_unicode.pyR7YsN( tcollectionsRt
json.testsRRtobjectRR6R7(((s-/sys/lib/python2.7/json/tests/test_unicode.pyt<module>sS
|