%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/json/tests/ |
Current File : //usr/local/lib/python2.7/json/tests/test_tool.pyo |
ó Oêáac @ sy d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d e j f d „ ƒ YZ d S( iÿÿÿÿN( t test_support( t assert_python_okt TestToolc B sA e Z d Z e j d ƒ Z 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 j t j d d f d t j d t j ƒ} | j | j j ƒ ƒ \ } } | j | j ƒ | j j ƒ j ƒ ƒ | j | d ƒ d S( Ns -ms json.toolt stdint stdout( t subprocesst Popent syst executablet PIPEt communicatet datat encodet assertEqualt splitlinest expectt None( t selft proct outt err( ( s0 /usr/local/lib/python2.7/json/tests/test_tool.pyt test_stdin_stdout( s %c C sH t j } t | d ƒ * } | j t j | ƒ | j | j ƒ Wd QX| S( Nt w( R t TESTFNt opent addCleanupt ost removet writeR ( R t infilet fp( ( s0 /usr/local/lib/python2.7/json/tests/test_tool.pyt _create_infile0 s c C s` | j ƒ } t d d | ƒ \ } } } | j | j ƒ | j j ƒ j ƒ ƒ | j | d ƒ d S( Ns -ms json.toolt ( R R R R R R ( R R t rcR R ( ( s0 /usr/local/lib/python2.7/json/tests/test_tool.pyt test_infile_stdout7 s %c C sŸ | j ƒ } t j d } t d d | | ƒ \ } } } | j t j | ƒ t | d ƒ } | j | j ƒ | j ƒ Wd QX| j | d ƒ | j | d ƒ d S( Ns .outs -ms json.toolt rR ( R R R R R R R R R t readR ( R R t outfileR! R R R ( ( s0 /usr/local/lib/python2.7/json/tests/test_tool.pyt test_infile_outfile= s ( t __name__t __module__R t textwrapt dedentR R R R"