#NEWLINE# def test_execute_normal_command( self , mock_get_os_utils ) : #NEWLINE# #INDENT# mock_osutils = mock_get_os_utils ( ) #NEWLINE# with testutils . create_tempfile ( ) as tmp : #NEWLINE# #INDENT# command = execcmd . BaseCommand ( tmp ) #NEWLINE# command . execute ( ) #NEWLINE# mock_osutils . execute_process . assert_called_once_with ( [ command . _target_path ] , shell = command . shell ) #NEWLINE# mock_osutils . execute_process . reset_mock ( ) #NEWLINE# command ( ) #NEWLINE# mock_osutils . execute_process . assert_called_once_with ( [ command . _target_path ] , shell = command . shell )