summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJosh Kearney <josh@jk0.org>2011-08-05 14:28:22 -0500
committerJosh Kearney <josh@jk0.org>2011-08-05 14:28:22 -0500
commitf03c926a7d28ee35789048ea53c36cd452ed3571 (patch)
treed9e541b84a860ba984b0aa8bfdd55289644af054 /nova/tests
parent7bdc430d334d51193492191e490be20d41dd5125 (diff)
Allow actions queries by UUID and PEP8 fixes.
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_image.py2
-rw-r--r--nova/tests/test_xenapi.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/nova/tests/test_image.py b/nova/tests/test_image.py
index 5ec8812f3..9680d6f2b 100644
--- a/nova/tests/test_image.py
+++ b/nova/tests/test_image.py
@@ -22,6 +22,7 @@ from nova import exception
from nova import test
import nova.image
+
class _ImageTestCase(test.TestCase):
def setUp(self):
super(_ImageTestCase, self).setUp()
@@ -126,6 +127,7 @@ class _ImageTestCase(test.TestCase):
index = self.image_service.index(self.context)
self.assertEquals(len(index), 0)
+
class FakeImageTestCase(_ImageTestCase):
def setUp(self):
super(FakeImageTestCase, self).setUp()
diff --git a/nova/tests/test_xenapi.py b/nova/tests/test_xenapi.py
index 8048e5341..dfc1eeb0a 100644
--- a/nova/tests/test_xenapi.py
+++ b/nova/tests/test_xenapi.py
@@ -767,7 +767,6 @@ class XenAPIMigrateInstance(test.TestCase):
conn = xenapi_conn.get_connection(False)
conn.migrate_disk_and_power_off(instance, '127.0.0.1')
-
def test_revert_migrate(self):
instance = db.instance_create(self.context, self.values)
self.called = False