#NEWLINE# def test_should_print_problem_when_exit_code_is_one( self ) : #NEWLINE# #INDENT# view = Mock ( ) #NEWLINE# view . file_name . return_value = '/any-directory/file' #NEWLINE# self . process . wait . return_value = 1 #NEWLINE# from RustAutoComplete import run_racer #NEWLINE# run_racer ( self , [ 'any' , 'racer' , 'commands' ] ) #NEWLINE# self . printer . assert_called_with ( 'failed: exit_code:' , 1 , b'this\nis\nthe\nstdout' )