%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/plesk/python/2.7/lib64/python2.7/json/tests/
Upload File :
Create Path :
Current File : //opt/plesk/python/2.7/lib64/python2.7/json/tests/test_scanstring.pyc

�
5}�ac@snddlZddlmZmZdefd��YZdeefd��YZdeefd��YZdS(	i����N(tPyTesttCTesttTestScanstringcBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCs�|jjj}tjdkr@|j|dddt�d;�n|j|dddt�d<�|j|dddt�d=�|j|d
ddt�d>�|j|d
ddt�d?�|j|dddt�d@�|j|dddt�dA�|j|dddt�dB�|j|dddt�dC�|j|dddt�dD�|j|dddt�dE�|j|d!ddt�dF�|j|d#ddt�dG�|j|d%ddt�dH�|j|d(ddt�dI�|j|d*ddt�dJ�|j|d-ddt�dK�|j|d0ddt�dL�|j|d3ddt�dM�|j|d6ddt�dN�|j|d8ddt�dO�dS(PNi��u"z𝄠x"iuz𝄠xiis"\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 colonis{"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(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(tjsontdecodert
scanstringtsyst
maxunicodetassertEqualtNonetTrue(tselfR((sC/opt/plesk/python/2.7/lib64/python2.7/json/tests/test_scanstring.pyttest_scanstrings�
cs��jjj���fd�}td�td�}|dd�|dd�|dd	�|d
d�|dd
|�|dd�|dd�|dd|�|dd�dS(Ncsx�j�|ddt�|t|�f�t|t�stt|�}�j�|ddt�|t|�f�ndS(Ni(RR	R
tlent
isinstancetunicode(tgiventexpect(RR(sC/opt/plesk/python/2.7/lib64/python2.7/json/tests/test_scanstring.pyt
assertScan_si4�i �s"z\ud834\u0079x"uz�yxs"z\ud834\udd20x"uz𝄠xs"z\ud834\ud834\udd20x"u	z�𝄠xs
"z\ud834x"uz�xu"z\ud834�x12345"u	z%sx12345s
"z\udd20x"uz�xu"z𝄠x"uz𝄠xu
"z�\udd20x"uz%sxu"z�x"(RRRtunichr(RRt
surrogates((RRsC/opt/plesk/python/2.7/lib64/python2.7/json/tests/test_scanstring.pyttest_surrogates]s





cCs�|jjj}ddddddddd	d
ddd
ddddddddddg}x7|D]/}|jt��||ddt�WdQXqaWdS(Ns"\"s"\x"s"\u"s"\u0"s"\u01"s"\u012"s"\uz012"s"\u0z12"s"\u01z2"s"\u012z"s"\u0x12"s"\u0X12"s	"\ud834\"s
"\ud834\u"s"\ud834\ud"s"\ud834\udd"s
"\ud834\udd2"s"\ud834\uzdd2"s"\ud834\udzd2"s"\ud834\uddz2"s"\ud834\udd2z"s"\ud834\u0x20"s"\ud834\u0X20"i(RRRtassertRaisest
ValueErrorR	R
(RRtbad_escapests((sC/opt/plesk/python/2.7/lib64/python2.7/json/tests/test_scanstring.pyttest_bad_escapesrs6	
cCsB|jt|jjjddd�|jt|jjjd�dS(Ntxxxisxx�(RRRRRtUnicodeDecodeErrortencodertencode_basestring_ascii(R((sC/opt/plesk/python/2.7/lib64/python2.7/json/tests/test_scanstring.pyttest_issue3623�s	cCs7|jt��"|jjjdtjd�WdQXdS(NRi(Rt
OverflowErrorRRRRtmaxsize(R((sC/opt/plesk/python/2.7/lib64/python2.7/json/tests/test_scanstring.pyt
test_overflow�s(t__name__t
__module__RRRRR"(((sC/opt/plesk/python/2.7/lib64/python2.7/json/tests/test_scanstring.pyRs
	W			tTestPyScanstringcBseZRS((R#R$(((sC/opt/plesk/python/2.7/lib64/python2.7/json/tests/test_scanstring.pyR%�stTestCScanstringcBseZRS((R#R$(((sC/opt/plesk/python/2.7/lib64/python2.7/json/tests/test_scanstring.pyR&�s(Rt
json.testsRRtobjectRR%R&(((sC/opt/plesk/python/2.7/lib64/python2.7/json/tests/test_scanstring.pyt<module>s�

Zerion Mini Shell 1.0