summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJason Koelker <jason@koelker.net>2011-09-16 13:48:52 -0500
committerJason Koelker <jason@koelker.net>2011-09-16 13:48:52 -0500
commitbb697d435d3a07bbf2b58db9ed4b13135579fd3a (patch)
treee0a0c7b00d7df79362c794028454f454dc38d12b /nova/tests
parent060ab8475d2a90b942473148a51889796ea2adc7 (diff)
parent2e0e2def5cd4a3fe899573304beb2d4851cc37b8 (diff)
merge the trunks
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_libvirt.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/nova/tests/test_libvirt.py b/nova/tests/test_libvirt.py
index b7c1ef1ab..1924ae050 100644
--- a/nova/tests/test_libvirt.py
+++ b/nova/tests/test_libvirt.py
@@ -52,6 +52,15 @@ def _concurrency(wait, done, target):
done.send()
+class FakeVirDomainSnapshot(object):
+
+ def __init__(self, dom=None):
+ self.dom = dom
+
+ def delete(self, flags):
+ pass
+
+
class FakeVirtDomain(object):
def __init__(self, fake_xml=None):
@@ -69,7 +78,7 @@ class FakeVirtDomain(object):
"""
def snapshotCreateXML(self, *args):
- return None
+ return FakeVirDomainSnapshot(self)
def createWithFlags(self, launch_flags):
pass