/usr/lib64/python2.6/site-packages/simplejson/tests
Edit: /usr/lib64/python2.6/site-packages/simplejson/tests/test_tool.pyc (3556B)
Ņō
}DVc @ sÞ d d k l Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z y d d k l Z WnR e
j
oF y d d k l Z WqÁ e
j
o d d k Z d Z qÁ Xn Xd e i
f d YZ d S( iĸĸĸĸ( t with_statementN( t strip_python_stderrc C s% t i d i d i | i S( Ns \[\d+ refs\]\r?\n?$t ( t ret subt encodet strip( t stderr( ( s@ /usr/lib64/python2.6/site-packages/simplejson/tests/test_tool.pyR s t TestToolc B sG e Z d Z e i d Z d d d Z d Z d 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
}
]
c C s t i d d g } | o | i | n t i | d t i d t i d t i } | i | \ } } | i t | d i | i | i
d | S( Ns -ms simplejson.toolt stdinR t stdoutR i ( t syst
executablet extendt
subprocesst Popent PIPEt communicatet assertEqualR R t
returncode( t selft argst datat argvt proct outt err( ( s@ /usr/lib64/python2.6/site-packages/simplejson/tests/test_tool.pyt runTool7 s c C s2 | i | i d | i i | i i d S( NR ( R R R R t expect( R ( ( s@ /usr/lib64/python2.6/site-packages/simplejson/tests/test_tool.pyt test_stdin_stdoutD s c C sx t i i i } zX | ~ } | i | i i | i | i | i d | i
g | i i Wd QXd S( NR ( t tempfilet NamedTemporaryFilet __exit__t __enter__t writeR R t flushR R t nameR ( R t _[1]t infile( ( s@ /usr/lib64/python2.6/site-packages/simplejson/tests/test_tool.pyt test_infile_stdoutI s #
c C s t i i i } zņ | ~ } | i | i i | i t i } z | i | i d | i
| i
g d i t | i
d i i } z, | ~ } | i | i | i
i Wd QXWd | i t i i | i
o t i | i
n XWd QXd S( NR R t rb( R R R R! R" R R R# R R R$ t opent readR t closet ost patht existst unlink( R R% R&