#NEWLINE# @ patch ( 'sys.stdout' , new_callable = StringIO ) #NEWLINE# @ patch ( 'sys.stderr' , new_callable = StringIO ) #NEWLINE# def test_execute_raw_output( stderr , stdout ) : #NEWLINE# #INDENT# with HTTMock ( service_mock ) : #NEWLINE# #INDENT# tool = get_tool ( 'groovy' ) #NEWLINE# server = Server ( 'localhost' ) #NEWLINE# status = tool . execute ( status , [ 'groovy' , '--raw' , 'tests/test_data/script.groovy' ] ) #NEWLINE# eq_ ( 0 , status ) #NEWLINE# eq_ ( EXPECTED_RAW_OUTPUT , stdout . getvalue ( ) ) #NEWLINE# eq_ ( '' , stderr . getvalue ( ) )