Allow actions queries by UUID and PEP8 fixes.

This commit is contained in:
Josh Kearney
2011-08-05 14:28:22 -05:00
parent a659843eb2
commit e86fd76f79
2 changed files with 2 additions and 1 deletions

View File

@@ -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()

View File

@@ -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