ok

Mini Shell

Direktori : /usr/lib64/python2.7/site-packages/simplejson/tests/
Upload File :
Current File : //usr/lib64/python2.7/site-packages/simplejson/tests/test_scanstring.pyo

�
���Sc@sdddlZddlmZddlZddlZddlmZmZdefd��YZ	dS(i����N(tTestCase(tbtPY3tTestScanStringcBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cCs|jtjj�dS(N(t_test_scanstringt
simplejsontdecodert
py_scanstring(tself((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_scanstring.pyttest_py_scanstringscCs'tjjsdS|jtjj�dS(N(RRtc_scanstringR(R((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_scanstring.pyttest_c_scanstringscCs7tjdkr1|j|dddt�dH�n|j|dddt�dI�|j|dddt�dJ�|j|d
ddt�dK�|j|d
ddt�dL�|j|dddt�dM�|j|dddt�dN�|j|dddt�dO�|j|dddt�dP�|j|dddt�dQ�|j|dddt�dR�|j|d!ddt�dS�|j|d#ddt�dT�|j|d%ddt�dU�|j|d(ddt�dV�|j|d*ddt�dW�|j|d-ddt�dX�|j|d0ddt�dY�|j|d3ddt�dZ�|j|d6ddt�d[�|j|d8ddt�d\�xitttd;d<��D]O}|j||d=d;dt�|df�|j	t
||d=d;dt�q�W|j	t
|d>d;dt�|j	t
|d?d;dt�|j	t
|d@d;dt�|j	t
|dAd;dt�|j	t
|dBd;dt�|j	t
|dCd;dt�|j	t
|dDd;dt�|j	t
|dEd;dt�tjdkr3|j	t
|dFd;dt�|j	t
|dGd;dt�ndS(]Ni��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iit"ttas\s\us\u0s\u01s\u012s\u0123s	\ud834\u"s
\ud834\x0123"(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(tsyst
maxunicodetassertEqualtNonetTruetmaptchrtrangetFalsetassertRaisest
ValueError(Rt
scanstringtc((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_scanstring.pyRs�

		cCsB|jttjjddd�|jttjjtd��dS(Ntxxxisxx�(	RRtjsonRRtUnicodeDecodeErrortencodertencode_basestring_asciiR(R((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_scanstring.pyttest_issue3623�s	cCsBttdttdd��}|jttjjd|d�dS(NtmaxsizetmaxintRi(tgetattrRRRt
OverflowErrorRRR(RR"((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_scanstring.pyt
test_overflow�scstjj�t��fd�}|dd�|dd�|dd�|dd	�|d
d�|dd	�|d
djddg��|ddjddg��|djddg�djddg�dt��jt�dddt��jt�dddt�dS(Ncs�|g}tr/|r/|j|jd��nxO|D]G}�|ddt�\}}�jt|�|��j||�q6WdS(Ntutf8i(RtappendtencodeRRRtlen(tgiventexpectt	test_utf8tgivenstrestcount(RR(sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_scanstring.pyt
assertScan�s	

u"z\ud834\u0079x"uz�yxu"z\ud834\udd20x"uz𝄠xu"z\ud834\ud834\udd20x"u	z�𝄠xu
"z\ud834x"uz�xu
"z\udd20x"uz�xu"z�x"u"z\ud834�x12345"uuz�u	�x12345u
"z�\udd20x"u�xu"z�u�x"R-u	"z\ud83x"iu"z\ud834\udd2x"(	RRRRtjoinRRRR(RR1((RRsF/usr/lib64/python2.7/site-packages/simplejson/tests/test_scanstring.pyttest_surrogates�sD			(t__name__t
__module__R	RRR!R&R3(((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_scanstring.pyRs				l		(
RtunittestRRRtsimplejson.decodertsimplejson.compatRRR(((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_scanstring.pyt<module>s


Zerion Mini Shell 1.0