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_fail.pyc

ó
ìUzMc@s›ddlmZddlZddddddd	d
ddd
ddddddddddddddgZidd6dd6Zd efd!„ƒYZdS("iÿÿÿÿ(tTestCaseNs<"A JSON payload should be an object or array, not a string."s["Unclosed array"s${unquoted_key: "keys must be quoted}s["extra comma",]s["double extra comma",,]s[   , "<-- missing value"]s["Comma after the close"],s["Extra close"]]s{"Extra comma": true,}s:{"Extra value after close": true} "misplaced quoted value"s{"Illegal expression": 1 + 2}s{"Illegal invocation": alert()}s+{"Numbers cannot have leading zeroes": 013}s{"Numbers cannot be hex": 0x14}s"["Illegal backslash escape: \x15"]s ["Illegal backslash escape: \'"]s"["Illegal backslash escape: \017"]s2[[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]]s{"Missing colon" null}s{"Double colon":: null}s {"Comma instead of colon", null}s!["Colon instead of comma": false]s["Bad value", truth]s['single quote']u$["AZ control characters in string"]swhy not have a string payload?is,spec doesn't specify any nesting limitationsitTestFailcBseZd„Zd„ZRS(cCs‰x‚ttƒD]t\}}|d}|tkrBtj|ƒq
nytj|ƒWntjk
riq
X|jd||fƒq
WdS(Nis$Expected failure for fail%d.json: %r(t	enumeratetJSONDOCStSKIPStjsontloadstJSONDecodeErrortfail(tselftidxtdoc((s>/usr/lib/python2.7/dist-packages/simplejson/tests/test_fail.pyt
test_failuresAs

cCs´x­ddgD]Ÿ}ytj|ƒWnxtjk
ru}|j|jdƒ|j|jdƒ|j|jdƒq
tk
rž}|jd||fƒq
X|jdƒq
WdS(Nu[,]s[,]is!Unexpected exception raised %r %ss Unexpected success parsing '[,]'(	RRRtassertEqualstpostlinenotcolnot	ExceptionR(R	Rte((s>/usr/lib/python2.7/dist-packages/simplejson/tests/test_fail.pyttest_array_decoder_issue46Os(t__name__t
__module__RR(((s>/usr/lib/python2.7/dist-packages/simplejson/tests/test_fail.pyR@s	(tunittestRt
simplejsonRRRR(((s>/usr/lib/python2.7/dist-packages/simplejson/tests/test_fail.pyt<module>s<