summaryrefslogtreecommitdiff
path: root/nova/tests/unit/compute/test_compute_mgr.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/tests/unit/compute/test_compute_mgr.py')
-rw-r--r--nova/tests/unit/compute/test_compute_mgr.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/nova/tests/unit/compute/test_compute_mgr.py b/nova/tests/unit/compute/test_compute_mgr.py
index 67dc20f6bd..c3548e054c 100644
--- a/nova/tests/unit/compute/test_compute_mgr.py
+++ b/nova/tests/unit/compute/test_compute_mgr.py
@@ -8237,9 +8237,14 @@ class ComputeManagerMigrationTestCase(test.NoDBTestCase,
self.migration)
mock_delete.assert_called_once_with(self.context, self.instance,
self.migration)
- mock_save.assert_called_with(expected_task_state=
- [None, task_states.DELETING,
- task_states.SOFT_DELETING])
+ mock_save.assert_has_calls([
+ mock.call(
+ expected_task_state=[
+ None, task_states.DELETING, task_states.SOFT_DELETING,
+ ],
+ ),
+ mock.call(),
+ ])
mock_delete_scheduler_info.assert_called_once_with(
self.context, self.instance.uuid)