shell bypass 403
�
?��cc @ s� d d l Z d d l Z d d l Z d d l Z d d l m Z m Z m Z m Z e j d k rs e j
d � � n e d Z d e j e j
f Z d e j f d � � YZ d � Z e d
k r� e � n d S( i����N( t TESTFNt run_unittestt unlinkt
reap_childrent posixs pipes module only works on posixt 2s tr %s %st SimplePipeTestsc B s� e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z
d � Z d
� Z d � Z
d � Z d
� Z d � Z d � Z RS( c C s% x t t f D] } t | � q
Wd S( N( R t TESTFN2R ( t selft f( ( s6 /usr/local/python-2.7/lib/python2.7/test/test_pipes.pyt tearDown s c C sw t j � } | j t t j � | j t d � } | j d � | j � t t � � } | j | j
� d � Wd QXd S( Nt ws hello world #1s HELLO WORLD #1( t pipest Templatet appendt s_commandt STDIN_STDOUTt openR t writet closet assertEqualt read( R t tR ( ( s6 /usr/local/python-2.7/lib/python2.7/test/test_pipes.pyt testSimplePipe1 s
c C s� t t d � � } | j d � Wd QXt j � } | j t d t j � | j t t � t t � � } | j
| j � d � Wd QXd S( NR s hello world #2s
< $IN > $OUTs HELLO WORLD #2( R R R R R
R R t FILEIN_FILEOUTt copyR R R ( R R R ( ( s6 /usr/local/python-2.7/lib/python2.7/test/test_pipes.pyt testSimplePipe2 s c C s} t t d � � } | j d � Wd QXt j � } | j t d t j � | j t d � � } | j | j � d � Wd QXd S( NR s hello world #2s < $INt rs HELLO WORLD #2(
R R R R R
R R t
FILEIN_STDOUTR R ( R R R ( ( s6 /usr/local/python-2.7/lib/python2.7/test/test_pipes.pyt testSimplePipe3&