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

�
���Sc@�s�ddlmZddlZddlZddlZddlZddlZddlZyddlm	Z	WnNe
k
r�yddlm	Z	Wq�e
k
r�ddlZd�Z	q�XnXdej
fd��YZdS(i����(twith_statementN(tstrip_python_stderrcC�s%tjdj�dj�|�j�S(Ns\[\d+ refs\]\r?\n?$t(tretsubtencodetstrip(tstderr((s@/usr/lib64/python2.7/site-packages/simplejson/tests/test_tool.pyRs		tTestToolcB�sGeZdZejd�Zddd�Zd�Zd�Z	d�Z
RS(s�

        [["blorpie"],[ "whoops" ] , [
                                 ],	"d-shtaeou",
"d-nthiouh",
        "i-vhbjkhnth", {"nifty":87}, {"morefield" :	false,"field"
            :"yes"}  ]
           s.    [
        [
            "blorpie"
        ],
        [
            "whoops"
        ],
        [],
        "d-shtaeou",
        "d-nthiouh",
        "i-vhbjkhnth",
        {
            "nifty": 87
        },
        {
            "field": "yes",
            "morefield": false
        }
    ]
    cC�s�tjddg}|r(|j|�ntj|dtjdtjdtj�}|j|�\}}|jt|�dj	��|j|j
d�|S(Ns-mssimplejson.tooltstdinRtstdoutRi(tsyst
executabletextendt
subprocesstPopentPIPEtcommunicatetassertEqualRRt
returncode(tselftargstdatatargvtproctoutterr((s@/usr/lib64/python2.7/site-packages/simplejson/tests/test_tool.pytrunTool7s		cC�s2|j|jd|jj��|jj��dS(NR(RRRRtexpect(R((s@/usr/lib64/python2.7/site-packages/simplejson/tests/test_tool.pyttest_stdin_stdoutDscC�sdtj��R}|j|jj��|j�|j|jd|jg�|j	j��WdQXdS(NR(
ttempfiletNamedTemporaryFiletwriteRRtflushRRtnameR(Rtinfile((s@/usr/lib64/python2.7/site-packages/simplejson/tests/test_tool.pyttest_infile_stdoutIs
cC�s�tj���}|j|jj��|j�tj�}zl|j|jd|j|jg�dj��t	|jd��&}|j|j
�|jj��WdQXWd|j�t
jj|j�r�t
j|j�nXWdQXdS(NRRtrb(RRR RRR!RRR"topentreadRtclosetostpathtexiststunlink(RR#toutfiletf((s@/usr/lib64/python2.7/site-packages/simplejson/tests/test_tool.pyttest_infile_outfileQs

)
N(t__name__t
__module__RttextwraptdedentRtNoneRRR$R/(((s@/usr/lib64/python2.7/site-packages/simplejson/tests/test_tool.pyRs	
		(t
__future__RR)RR2tunittestRRttest.supportRtImportErrorttest.test_supportRtTestCaseR(((s@/usr/lib64/python2.7/site-packages/simplejson/tests/test_tool.pyt<module>s



Zerion Mini Shell 1.0