%PDF- %PDF-
Direktori : /proc/self/root/opt/plesk/python/2.7/lib64/python2.7/test/ |
Current File : //proc/self/root/opt/plesk/python/2.7/lib64/python2.7/test/test_pipes.pyo |
� 5}�ac @ 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( ( s8 /opt/plesk/python/2.7/lib64/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 ( ( s8 /opt/plesk/python/2.7/lib64/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 ( ( s8 /opt/plesk/python/2.7/lib64/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 ( ( s8 /opt/plesk/python/2.7/lib64/python2.7/test/test_pipes.pyt testSimplePipe3&