%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/json/tests/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/json/tests/test_decode.pyo

ó
Oêáac@sŽddlZddlmZddlmZddlmZmZdefd„ƒYZdeefd„ƒYZ	d	eefd
„ƒYZ
dS(iÿÿÿÿN(tStringIO(tOrderedDict(tPyTesttCTestt
TestDecodecBsPeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	RS(cCsN|jddtjƒ}|jt|tjƒƒ|j|tjdƒƒdS(Ns1.1tparse_float(tloadstdecimaltDecimalt
assertTruet
isinstancetassertEqual(tselftrval((s2/usr/local/lib/python2.7/json/tests/test_decode.pyttest_decimalscCs?|jddtƒ}|jt|tƒƒ|j|dƒdS(Nt1t	parse_intgð?(RtfloatR	R
R(RR
((s2/usr/local/lib/python2.7/json/tests/test_decode.pyt
test_float
scCs1|jdƒ}|j|idd6dd6ƒdS(Ns,{   "key"    :    "value"    ,  "k":"v"    }tvaluetkeytvtk(RR(RR
((s2/usr/local/lib/python2.7/json/tests/test_decode.pyttest_decoder_optimizationsscCsh|j|jdƒiƒ|j|jdƒgƒ|j|jdƒdƒ|j|jdƒtƒdS(Ns{}s[]s""u(RRtassertIsInstancetunicode(R((s2/usr/local/lib/python2.7/json/tests/test_decode.pyttest_empty_objectsscCsSd}dddddddg}|j|j|ƒt|ƒƒ|j|j|dd„ƒ|ƒ|j|jjt|ƒdd„ƒ|ƒ|j|dtƒ}|j|t|ƒƒ|jt|ƒtƒ|j|j|dtdd„ƒt|ƒƒ|j|jddtƒtƒƒ|j|jddtƒtdtƒfgƒƒdS(Ns?{"xkd":1, "kcw":2, "art":3, "hxm":4, "qrt":5, "pad":6, "hoy":7}txkditkcwitartithxmitqrtitpadithoyitobject_pairs_hookcSs|S(N((tx((s2/usr/local/lib/python2.7/json/tests/test_decode.pyt<lambda>$tcSs|S(N((R#((s2/usr/local/lib/python2.7/json/tests/test_decode.pyR$&R%tobject_hookcSsdS(N(tNone(R#((s2/usr/local/lib/python2.7/json/tests/test_decode.pyR$,R%s{}s
{"empty": {}}tempty(Ri(Ri(Ri(Ri(Ri(R i(R!i(RRtevaltjsontloadRRttype(Rtstptod((s2/usr/local/lib/python2.7/json/tests/test_decode.pyttest_object_pairs_hooks$"	

cCs)d}d}|jt||j|ƒdS(Ns
[1, 2, 3]5s
Extra data(tassertRaisesRegexpt
ValueErrorR(RR-tmsg((s2/usr/local/lib/python2.7/json/tests/test_decode.pyttest_extra_data5scCs)d}d}|jt||j|ƒdS(Ns	["abc\y"]tescape(R1R2R(RR-R3((s2/usr/local/lib/python2.7/json/tests/test_decode.pyttest_invalid_escape:scCsM|jjƒ}|jt|jdddƒ|jt|jdddƒdS(Ntai*i°<ÿÿua(R*tJSONDecodertassertRaisesR2t
raw_decode(Rtd((s2/usr/local/lib/python2.7/json/tests/test_decode.pyttest_negative_index?s(
t__name__t
__module__RRRRR0R4R6R<(((s2/usr/local/lib/python2.7/json/tests/test_decode.pyRs							tTestPyDecodecBseZRS((R=R>(((s2/usr/local/lib/python2.7/json/tests/test_decode.pyR?DstTestCDecodecBseZRS((R=R>(((s2/usr/local/lib/python2.7/json/tests/test_decode.pyR@Es(RRtcollectionsRt
json.testsRRtobjectRR?R@(((s2/usr/local/lib/python2.7/json/tests/test_decode.pyt<module>s=

Zerion Mini Shell 1.0