Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/json/tests/test_tool.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@syddlZddlZddlZddlZddlZddlmZddlmZdej	fd��YZ
dS(i�N(ttest_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

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.