%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/test/ |
Current File : //usr/local/lib/python2.7/test/test_pipes.pyc |
ó Nêá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( ( s+ /usr/local/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 ( ( s+ /usr/local/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 ( ( s+ /usr/local/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 ( ( s+ /usr/local/lib/python2.7/test/test_pipes.pyt testSimplePipe3&