#NEWLINE# @ mock . patch . object ( ssh , '_get_connection' , autospec = True ) #NEWLINE# @ mock . patch . object ( ssh , '_get_hosts_name_for_node' , autospec = True ) #NEWLINE# def test_get_boot_device_not_supported( self , mock_h , mock_get_conn ) : #NEWLINE# #INDENT# mock_h . return_value = 'NodeName' #NEWLINE# mock_get_conn . return_value = self . sshclient #NEWLINE# with task_manager . acquire ( self . context , self . node . uuid ) as task : #NEWLINE# #INDENT# task . node [ 'driver_info' ] [ 'ssh_virt_type' ] = 'vmware' #NEWLINE# expected = { #NEWLINE# #INDENT# 'boot_device' : None , #NEWLINE# 'persistent' : None , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( expected , self . driver . management . get_boot_device ( task ) )