??????????????????????
???  ?????????????????
 JFIF      ?? C      


!"$"$?? C    
?? p 
" ??     
         ??             ?   
   ????

(%	aA*?XYD?(J??E  RE,P XYae?)(E  2 B  R  	BQ    X?)X     ?  @  

adadasdasdasasdasdas


.....................................................................................................................................??????????????????????
???  
 JFIF      ?? C      


!"$"$?? C    
?? p 
" ??     
         ??             ?   
   ????

(%	aA*?XYD?(J??E  RE,P XYae?)(E  2 B  R  	BQ    X?)X     ?  @  

adadasdasdasasdasdas


.....................................................................................................................................ó
ÖÉÎSc           @€  sÚ   d  d l  m Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z y d  d l m	 Z	 WnN e
 k
 r¼ y d  d l m	 Z	 Wq½ e
 k
 r¸ d  d l Z d „  Z	 q½ Xn Xd e j f d „  ƒ  YZ d S(   iÿÿÿÿ(   t   with_statementN(   t   strip_python_stderrc         C€  s%   t  j d j ƒ  d j ƒ  |  ƒ j ƒ  S(   Ns   \[\d+ refs\]\r?\n?$t    (   t   ret   subt   encodet   strip(   t   stderr(    (    s@   /usr/lib64/python2.7/site-packages/simplejson/tests/test_tool.pyR      s    		t   TestToolc           B€  sG   e  Z d  Z e j 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  j d d g } | r( | j | ƒ n  t j | d t j d t j d t j ƒ} | j | ƒ \ } } |  j t | ƒ d j	 ƒ  ƒ |  j | j
 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.7/site-packages/simplejson/tests/test_tool.pyt   runTool7   s    		c         C€  s2   |  j  |  j d |  j j ƒ  ƒ |  j j ƒ  ƒ d  S(   NR   (   R   R   R   R   t   expect(   R   (    (    s@   /usr/lib64/python2.7/site-packages/simplejson/tests/test_tool.pyt   test_stdin_stdoutD   s    c         C€  sd   t  j ƒ  R } | j |  j j ƒ  ƒ | j ƒ  |  j |  j d | j g ƒ |  j	 j ƒ  ƒ Wd  QXd  S(   NR   (
   t   tempfilet   NamedTemporaryFilet   writeR   R   t   flushR   R   t   nameR   (   R   t   infile(    (    s@   /usr/lib64/python2.7/site-packages/simplejson/tests/test_tool.pyt   test_infile_stdoutI   s    
c         C€  sç   t  j ƒ  Õ } | j |  j j ƒ  ƒ | j ƒ  t  j ƒ  } zl |  j |  j d | j | j g ƒ d j ƒ  ƒ t	 | j d ƒ & } |  j | j
 ƒ  |  j j ƒ  ƒ Wd  QXWd  | j ƒ  t j j | j ƒ rÜ t j | j ƒ n  XWd  QXd  S(   NR   R   t   rb(   R   R   R    R   R   R!   R   R   R"   t   opent   readR   t   closet   ost   patht   existst   unlink(   R   R#   t   outfilet   f(    (    s@   /usr/lib64/python2.7/site-packages/simplejson/tests/test_tool.pyt   test_infile_outfileQ   s    
)
N(   t   __name__t
   __module__R   t   textwrapt   dedentR   t   NoneR   R   R$   R/   (    (    (    s@   /usr/lib64/python2.7/site-packages/simplejson/tests/test_tool.pyR      s   			(   t
   __future__R    R)   R   R2   t   unittestR   R   t   test.supportR   t   ImportErrort   test.test_supportR   t   TestCaseR   (    (    (    s@   /usr/lib64/python2.7/site-packages/simplejson/tests/test_tool.pyt   <module>   s   