summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Wells <iawells@cisco.com>2012-09-03 04:26:22 -0700
committerIan Wells <iawells@cisco.com>2012-09-03 04:49:36 -0700
commit99bc7c2858e473833a778191b11fc66c71201cfe (patch)
tree0315a4c1c2050adcef51527b15c3100f988fa144
parent36eab7a23c3539795d3a731d06b38ee188e70f87 (diff)
Add full python path to test stubbing modules for libvirt
libvirt test modules were relatively addressed (import fakelibvirt etc.) and this meant that running the test specifically (./run_tests test_virt_drivers) would fail with missing imports. Change-Id: I81f019bf635e10ca90f77f7a30b2e19065fee8f4
-rw-r--r--nova/tests/test_fakelibvirt.py2
-rw-r--r--nova/tests/test_virt_drivers.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/nova/tests/test_fakelibvirt.py b/nova/tests/test_fakelibvirt.py
index 51ff55b10..fba160046 100644
--- a/nova/tests/test_fakelibvirt.py
+++ b/nova/tests/test_fakelibvirt.py
@@ -18,7 +18,7 @@ from nova import test
from lxml import etree
-import fakelibvirt as libvirt
+import nova.tests.fakelibvirt as libvirt
def get_vm_xml(name="testname", uuid=None, source_type='file',
diff --git a/nova/tests/test_virt_drivers.py b/nova/tests/test_virt_drivers.py
index f64270b1a..18b6bdc7d 100644
--- a/nova/tests/test_virt_drivers.py
+++ b/nova/tests/test_virt_drivers.py
@@ -63,9 +63,9 @@ class _FakeDriverBackendTestCase(test.TestCase):
else:
self.saved_libvirt = None
- import fake_imagebackend
- import fake_libvirt_utils
- import fakelibvirt
+ import nova.tests.fake_imagebackend as fake_imagebackend
+ import nova.tests.fake_libvirt_utils as fake_libvirt_utils
+ import nova.tests.fakelibvirt as fakelibvirt
sys.modules['libvirt'] = fakelibvirt
import nova.virt.libvirt.driver