Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/simplejson/tests/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/simplejson/tests/test_scanstring.pyc


ƄNc@sNddlZddlmZddlZddlZdefdYZdS(iN(tTestCasetTestScanStringcBs5eZdZdZdZdZdZRS(cCs|jtjjdS(N(t_test_scanstringt
simplejsontdecodert
py_scanstring(tself((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_scanstring.pyttest_py_scanstringscCs'tjjsdS|jtjjdS(N(RRtc_scanstringR(R((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_scanstring.pyttest_c_scanstringscCs|j|dddtd<tjdkrP|j|dddtd=n|j|dddtd>|j|d	ddtd?|j|dddtd@|j|dddtdA|j|dddtdB|j|dddtdC|j|dddtdD|j|dddtdE|j|dddtdF|j|d ddtdG|j|d#ddtdH|j|d%ddtdI|j|d'ddtdJ|j|d*ddtdK|j|d,ddtdL|j|d/ddtdM|j|d1ddtdN|j|d4ddtdO|j|d7ddtdP|j|d9ddtdQdS(RNs"z\ud834\udd20x"iuz𝄠xiiu"z𝄠x"iis"\u007b"u{is<"A JSON payload should be an object or array, not a string."u:A JSON payload should be an object or array, not a string.i<s["Unclosed array"iuUnclosed arrayis["extra comma",]uextra commais["double extra comma",,]udouble extra commais["Comma after the close"],uComma after the closeis["Extra close"]]uExtra closes{"Extra comma": true,}uExtra commas:{"Extra value after close": true} "misplaced quoted value"uExtra value after closeis{"Illegal expression": 1 + 2}uIllegal expressions{"Illegal invocation": alert()}uIllegal invocations+{"Numbers cannot have leading zeroes": 013}u"Numbers cannot have leading zeroesi%s{"Numbers cannot be hex": 0x14}uNumbers cannot be hexs2[[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]]uToo deepis{"Missing colon" null}u
Missing colons{"Double colon":: null}uDouble colonis {"Comma instead of colon", null}uComma instead of colonis!["Colon instead of comma": false]uColon instead of commas["Bad value", truth]u	Bad valuei(uz𝄠xi(uz𝄠xi(uz𝄠xi(u{i(u:A JSON payload should be an object or array, not a string.i<(uUnclosed arrayi(uextra commai(udouble extra commai(uComma after the closei(uExtra closei(uExtra commai(uExtra value after closei(uIllegal expressioni(uIllegal invocationi(u"Numbers cannot have leading zeroesi%(uNumbers cannot be hexi(uToo deepi(u
Missing coloni(uDouble coloni(uComma instead of coloni(uColon instead of commai(u	Bad valuei(tassertEqualstNonetTruetsyst
maxunicode(Rt
scanstring((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_scanstring.pyRs
cCs<|jttjjddd|jttjjddS(Ntxxxisxx(tassertRaisest
ValueErrortjsonRRtUnicodeDecodeErrortencodertencode_basestring_ascii(R((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_scanstring.pyttest_issue3623js	cCs9ttdtj}|jttjjd|ddS(NtmaxsizeRi(tgetattrR
tmaxintRt
OverflowErrorRRR(RR((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_scanstring.pyt
test_overflowps(t__name__t
__module__RR	RRR(((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_scanstring.pyRs
			Z	(R
tunittestRRRtsimplejson.decoderR(((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_scanstring.pyt<module>s