#NEWLINE# def test__run_command_over_ssh_remote_path( self ) : #NEWLINE# #INDENT# mock_ssh = mock . MagicMock ( ) #NEWLINE# vm_scenario = utils . VMScenario ( self . context ) #NEWLINE# vm_scenario . _run_command_over_ssh ( vm_scenario , { #NEWLINE# #INDENT# 'remote_path' : [ 'foo' , 'bar' ] , #NEWLINE# 'command_args' : [ 'arg1' , 'arg2' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# mock_ssh . execute . assert_called_once_with ( [ 'foo' , 'bar' , 'arg1' , 'arg2' ] , stdin = None )