��Qc@syddlZddlZddlZddlZddlZddlmZddlmZdej fd��YZ
dS(i�N(ttest_support(tassert_python_oktTestToolcBsAeZdZejd�Zd�Zd�Zd�Zd�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
}
]
cCs�tjtjddfdtjdtj�}|j|jj��\}}|j|j �|j
j�j ��|j|d�dS(Ns-ms json.tooltstdintstdout(t
subprocesstPopentsyst
executabletPIPEtcommunicatetdatatencodetassertEqualt
splitlinestexpecttNone(tselftproctoutterr((s*/sys/lib/python2.7/json/tests/test_tool.pyttest_stdin_stdout(s%cCsHtj}t|d��}|jtj|�|j|j�WdQX|S(Ntw(RtTESTFNtopent
addCleanuptostremovetwriteR(Rtinfiletfp((s*/sys/lib/python2.7/json/tests/test_tool.pyt_create_infile0s
cCs`|j�}tdd|�\}}}|j|j�|jj�j��|j|d�dS(Ns-ms json.toolt(RRR
RRR(RRtrcRR((s*/sys/lib/python2.7/json/tests/test_tool.pyttest_infile_stdout7s%cCs�|j�}tjd}tdd||�\}}}|jtj|�t|d��}|j|j �|j
�WdQX|j|d�|j|d�dS(Ns.outs-ms json.tooltrR (RRRRRRRRR
treadR(RRtoutfileR!RRR((s*/sys/lib/python2.7/json/tests/test_tool.pyttest_infile_outfile=s
(
t__name__t
__module__RttextwraptdedentRRRR"R&(((s*/sys/lib/python2.7/json/tests/test_tool.pyR s (RRR)tunittestRttestRttest.script_helperRtTestCaseR(((s*/sys/lib/python2.7/json/tests/test_tool.pyt<module>s
|