#NEWLINE# def test_flush_pipes_data_between_streams( self ) : #NEWLINE# #INDENT# a = StringIO ( 'food' ) #NEWLINE# b = StringIO ( ) #NEWLINE# pump = io . Pump ( b , b ) #NEWLINE# pump . flush ( 3 ) #NEWLINE# expect ( a . read ( 1 ) ) . to ( equal ( 'd' ) ) #NEWLINE# expect ( b . getvalue ( ) ) . to ( equal ( 'foo' ) )