#NEWLINE# @ patch ( 'sys.stdout' , new_callable = StringIO ) #NEWLINE# @ patch ( 'sys.stderr' , new_callable = StringIO ) #NEWLINE# @ patch ( 'sys.stdin' , new = StringIO ( '/content\n' ) ) #NEWLINE# def test_find_stdin( stderr , stdout ) : #NEWLINE# #INDENT# with HTTMock ( service_mock ) : #NEWLINE# #INDENT# tool = get_tool ( 'find' ) #NEWLINE# server = Server ( 'localhost' ) #NEWLINE# status = tool . execute ( server , [ 'find' ] ) #NEWLINE# eq_ ( 0 , status ) #NEWLINE# eq_ ( '/content\n/content/path\n/content/path/node\n/content/path/directory\n' , stdout . getvalue ( ) ) #NEWLINE# eq_ ( '' , stderr . getvalue ( ) )