summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJosh Kearney <josh.kearney@rackspace.com>2011-01-03 23:49:48 +0000
committerTarmac <>2011-01-03 23:49:48 +0000
commitdd1e36b9690a2c2de18c565c496b25295a13d0aa (patch)
treefdeb002b6da9a3134b9e28576570ef4a50fcc59d /nova/tests
parentbed422cb2677f9e7505b5e7dc9ac46edb9a90dea (diff)
parent6a8f011789ddad57726ce55962b51a04a69fe527 (diff)
Fixes LP688545.
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_xenapi.py19
1 files changed, 10 insertions, 9 deletions
diff --git a/nova/tests/test_xenapi.py b/nova/tests/test_xenapi.py
index c95a53af3..33571dad0 100644
--- a/nova/tests/test_xenapi.py
+++ b/nova/tests/test_xenapi.py
@@ -250,15 +250,16 @@ class XenAPIVMTestCase(test.TestCase):
def _create_instance(self):
"""Creates and spawns a test instance"""
- values = {'name': 1, 'id': 1,
- 'project_id': self.project.id,
- 'user_id': self.user.id,
- 'image_id': 1,
- 'kernel_id': 2,
- 'ramdisk_id': 3,
- 'instance_type': 'm1.large',
- 'mac_address': 'aa:bb:cc:dd:ee:ff'
- }
+ values = {
+ 'name': 1,
+ 'id': 1,
+ 'project_id': self.project.id,
+ 'user_id': self.user.id,
+ 'image_id': 1,
+ 'kernel_id': 2,
+ 'ramdisk_id': 3,
+ 'instance_type': 'm1.large',
+ 'mac_address': 'aa:bb:cc:dd:ee:ff'}
instance = db.instance_create(values)
self.conn.spawn(instance)
return instance