diff options
| author | Ryu Ishimoto <ryu@midokura.jp> | 2011-07-22 01:13:34 +0900 |
|---|---|---|
| committer | Ryu Ishimoto <ryu@midokura.jp> | 2011-07-22 01:13:34 +0900 |
| commit | 87403c1e8b27b52e9e84856490ea7a0dc51f5bb6 (patch) | |
| tree | 23547acf9f2e9351e3adff9dde9e4650e35b66e0 | |
| parent | 7aca24e8463c38c4e051a59788de1c0c0b15cd0c (diff) | |
Changed test_live_migration_raises_exception to use mock for compte manager method
| -rw-r--r-- | nova/tests/test_libvirt.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nova/tests/test_libvirt.py b/nova/tests/test_libvirt.py index 01a37fe47..ad0931a89 100644 --- a/nova/tests/test_libvirt.py +++ b/nova/tests/test_libvirt.py @@ -722,6 +722,9 @@ class LibvirtConnTestCase(test.TestCase): return vdmock self.create_fake_libvirt_mock(lookupByName=fake_lookup) + self.mox.StubOutWithMock(self.compute, "recover_live_migration") + self.compute.recover_live_migration(self.context, instance_ref, + dest='dest') # Start test self.mox.ReplayAll() |
