#NEWLINE# def test_execute_powershell_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 . Powershell ( mock_osutils ) #NEWLINE# command . execute ( ) #NEWLINE# mock_osutils . execute_powershell_script . assert_called_once_with ( command . _target_path , command . sysnative )