��Qc@svddlZddlZddlZddlZddlZddlmZejdddg�Zejdddg�Z dej
fd��YZejed �d
ej
fd��Y�Z
defd
��YZde
fd��YZejje�Zd�Zd�Zd�Zedkrrejjdejjejjejjejje�����e�ndS(i�N(ttest_supporttjsontfresht_jsontblockedtPyTestcBs,eZeZeej�Zeej�ZRS((t__name__t
__module__tpyjsonRtstaticmethodtloadstdumps(((s)/sys/lib/python2.7/json/tests/__init__.pyRssrequires _jsontCTestcBs;eZedk r9eZeej�Zeej�ZnRS(N(RRtcjsontNoneRR R
R(((s)/sys/lib/python2.7/json/tests/__init__.pyRst
TestPyTestcBseZd�ZRS(cCsX|j|jjjjd�|j|jjjjd�|j|jjjjd�dS(Nsjson.scannersjson.decodersjson.encoder( tassertEqualRtscannertmake_scannerRtdecodert
scanstringtencodertencode_basestring_ascii(tself((s)/sys/lib/python2.7/json/tests/__init__.pyttest_pyjsons(RRR(((s)/sys/lib/python2.7/json/tests/__init__.pyRst TestCTestcBseZd�ZRS(cCst|j|jjjjd�|j|jjjjd�|j|jjjjd�|j|jjj jd�dS(NR(
RRRRRRRRtc_make_encoderR(R((s)/sys/lib/python2.7/json/tests/__init__.pyt
test_cjson%s
(RRR(((s)/sys/lib/python2.7/json/tests/__init__.pyR$scCs�t�}tj�}xstjt�D]b}|jd�r%|jd�r%d|d }t|�t j
|}|j|j|��q%q%W|S(Nttests.pysjson.tests.i�(
tadditional_teststunittestt
TestLoadertostlistdirtheret
startswithtendswitht
__import__tsystmodulestaddTeststloadTestsFromModule(tsuitetloadertfntmodnametmodule((s)/sys/lib/python2.7/json/tests/__init__.pyt
test_suite/s
cCsltj�}x3ttjtjfD]}|jtj|��q"W|jtd��|jt d��|S(NRR(
Rt TestSuiteRRRtaddTesttdoctesttDocTestSuiteRR(R*tmod((s)/sys/lib/python2.7/json/tests/__init__.pyR:scCs&t�}tj�}|j|�dS(N(R/RtTextTestRunnertrun(R*trunner((s)/sys/lib/python2.7/json/tests/__init__.pytmainBs t__main__i(R R&RR2RRRtimport_fresh_moduleR
RtTestCaseRt
skipUnlessRRRtpathtdirnamet__file__R"R/RR8Rtinserttabspath(((s)/sys/lib/python2.7/json/tests/__init__.pyt<module>s& C
|