#NEWLINE# def test_auto_terminate_and_no_auto_terminate( self ) : #NEWLINE# #INDENT# cmd = ( ( DEFAULT_CMD + '--ami-version 3.0.4 ' ) + '--auto-terminate --no-auto-terminate' ) #NEWLINE# expected_error_msg = '\naws: error: cannot use both --no-auto-terminate and --auto-terminate options together.\n' #NEWLINE# result = self . run_cmd ( cmd , 255 ) #NEWLINE# self . assertEquals ( expected_error_msg , expected_error_msg [ 1 ] )