Allow actions queries by UUID and PEP8 fixes.
This commit is contained in:
@@ -22,6 +22,7 @@ from nova import exception
|
|||||||
from nova import test
|
from nova import test
|
||||||
import nova.image
|
import nova.image
|
||||||
|
|
||||||
|
|
||||||
class _ImageTestCase(test.TestCase):
|
class _ImageTestCase(test.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(_ImageTestCase, self).setUp()
|
super(_ImageTestCase, self).setUp()
|
||||||
@@ -126,6 +127,7 @@ class _ImageTestCase(test.TestCase):
|
|||||||
index = self.image_service.index(self.context)
|
index = self.image_service.index(self.context)
|
||||||
self.assertEquals(len(index), 0)
|
self.assertEquals(len(index), 0)
|
||||||
|
|
||||||
|
|
||||||
class FakeImageTestCase(_ImageTestCase):
|
class FakeImageTestCase(_ImageTestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(FakeImageTestCase, self).setUp()
|
super(FakeImageTestCase, self).setUp()
|
||||||
|
|||||||
@@ -767,7 +767,6 @@ class XenAPIMigrateInstance(test.TestCase):
|
|||||||
conn = xenapi_conn.get_connection(False)
|
conn = xenapi_conn.get_connection(False)
|
||||||
conn.migrate_disk_and_power_off(instance, '127.0.0.1')
|
conn.migrate_disk_and_power_off(instance, '127.0.0.1')
|
||||||
|
|
||||||
|
|
||||||
def test_revert_migrate(self):
|
def test_revert_migrate(self):
|
||||||
instance = db.instance_create(self.context, self.values)
|
instance = db.instance_create(self.context, self.values)
|
||||||
self.called = False
|
self.called = False
|
||||||
|
|||||||
Reference in New Issue
Block a user