From c40de761259c88904fa509b0c9d713a9827bd292 Mon Sep 17 00:00:00 2001 From: Takashi NATSUME Date: Tue, 18 Jun 2019 16:39:58 +0900 Subject: [PATCH] Fix wrong assert methods Fix wrong assert methods in the unit tests for libvirt driver. Change-Id: I804d504d21953a936a18b76334557fe3ccb97107 Closes-Bug: #1833182 --- nova/tests/unit/virt/libvirt/test_driver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nova/tests/unit/virt/libvirt/test_driver.py b/nova/tests/unit/virt/libvirt/test_driver.py index 0ae85b321b8c..9bdc16cb9ea5 100644 --- a/nova/tests/unit/virt/libvirt/test_driver.py +++ b/nova/tests/unit/virt/libvirt/test_driver.py @@ -10104,7 +10104,7 @@ class LibvirtConnTestCase(test.NoDBTestCase, migrate_data, guest, []) get_updated_guest_xml.assert_called_once() migrate.assert_called() - detach.asset_called() + detach.assert_called() _test_direct() @@ -10123,7 +10123,7 @@ class LibvirtConnTestCase(test.NoDBTestCase, migrate_data, guest, []) get_updated_guest_xml.assert_called_once() migrate.assert_called() - detach.asset_called_once() + detach.assert_called_once() _test_mix()