#NEWLINE# @ mock . patch ( 'nova.conductor.manager.ComputeTaskManager.rebuild_instance' ) #NEWLINE# def test_server_evacuate_find_host( self , rebuild_mock ) : #NEWLINE# #INDENT# req_subs = { #NEWLINE# #INDENT# 'adminPass' : 'MySecretPass' , #NEWLINE# 'onSharedStorage' : 'False' , #NEWLINE# #UNINDENT# } #NEWLINE# self . _test_evacuate ( req_subs , 'server-evacuate-find-host-req' , 'server-evacuate-find-host-resp' , 200 ) #NEWLINE# rebuild_mock . assert_called_once_with ( mock . ANY , instance = mock . ANY , orig_image_ref = mock . ANY , image_ref = mock . ANY , injected_files = mock . ANY , new_pass = 'MySecretPass' , orig_sys_metadata = mock . ANY , bdms = mock . ANY , recreate = mock . ANY , on_shared_storage = False , preserve_ephemeral = mock . ANY , host = None , request_spec = mock . ANY )