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

�
���Sc@sbddlmZddlZdd	d��YZdejfd��YZdefd��YZdS(
i����(tTestCaseNtJSONTestObjectcBseZRS((t__name__t
__module__(((sE/usr/lib64/python2.7/site-packages/simplejson/tests/test_recursion.pyRstRecursiveJSONEncodercBseZeZd�ZRS(cCs3|tkr#|jrtgSdSntjj|�S(NR(RtrecursetjsontJSONEncodertdefault(tselfto((sE/usr/lib64/python2.7/site-packages/simplejson/tests/test_recursion.pyRs
	(RRtFalseRR(((sE/usr/lib64/python2.7/site-packages/simplejson/tests/test_recursion.pyR	st
TestRecursioncBs#eZd�Zd�Zd�ZRS(cCs�g}|j|�ytj|�Wntk
r7nX|jd�g}|g}|j|�ytj|�Wntk
r�nX|jd�g}||g}tj|�dS(Ns)didn't raise ValueError on list recursions5didn't raise ValueError on alternating list recursion(tappendRtdumpst
ValueErrortfail(R	txty((sE/usr/lib64/python2.7/site-packages/simplejson/tests/test_recursion.pyttest_listrecursions$


	


cCsmi}||d<ytj|�Wntk
r4nX|jd�i}i|d6|d6}tj|�dS(Nttests)didn't raise ValueError on dict recursiontatb(RRRR(R	RR((sE/usr/lib64/python2.7/site-packages/simplejson/tests/test_recursion.pyttest_dictrecursion,s


cCsat�}|j|jt�d�t|_y|jt�Wntk
rOnX|jd�dS(Ns"JSONTestObject"s,didn't raise ValueError on default recursion(RtassertEqualtencodeRtTrueRRR(R	tenc((sE/usr/lib64/python2.7/site-packages/simplejson/tests/test_recursion.pyttest_defaultrecursion:s		
(RRRRR(((sE/usr/lib64/python2.7/site-packages/simplejson/tests/test_recursion.pyRs		((tunittestRt
simplejsonRRRRR(((sE/usr/lib64/python2.7/site-packages/simplejson/tests/test_recursion.pyt<module>s

Zerion Mini Shell 1.0