Skip to content

Commit f9e96af

Browse files
committed
fixup
1 parent a9c6a8d commit f9e96af

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/integration/smoke/test_restore_vm.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ def setUpClass(cls):
5050

5151
template_t1 = Template.register(cls.apiclient, cls.services["test_templates"][
5252
cls.hypervisor.lower() if cls.hypervisor.lower() != 'simulator' else 'xenserver'],
53-
zoneid=cls.zone.id, hypervisor=cls.hypervisor.lower())
53+
zoneid=cls.zone.id, hypervisor=cls.hypervisor.lower())
5454
cls._cleanup.append(template_t1)
5555
template_t1.download(cls.apiclient)
5656
cls.template_t1 = Template.list(cls.apiclient, templatefilter='all', id=template_t1.id)[0]
5757

5858
template_t2 = Template.register(cls.apiclient, cls.services["test_templates"][
5959
cls.hypervisor.lower() if cls.hypervisor.lower() != 'simulator' else 'xenserver'],
60-
zoneid=cls.zone.id, hypervisor=cls.hypervisor.lower())
60+
zoneid=cls.zone.id, hypervisor=cls.hypervisor.lower())
6161
cls._cleanup.append(template_t2)
6262
template_t2.download(cls.apiclient)
6363
cls.template_t2 = Template.list(cls.apiclient, templatefilter='all', id=template_t2.id)[0]
@@ -117,7 +117,8 @@ def test_02_restore_vm_with_disk_offering(self):
117117
root_vol = Volume.list(self.apiclient, virtualmachineid=restored_vm.id)[0]
118118
self.assertEqual(root_vol.diskofferingid, self.disk_offering.id, "Disk offering id should match")
119119
self.assertEqual(root_vol.state, 'Ready', "Volume should be in Ready state")
120-
self.assertEqual(root_vol.size, self.disk_offering.disksize * 1024 * 1024 * 1024, "Size of volume and disk offering should match")
120+
self.assertEqual(root_vol.size, self.disk_offering.disksize * 1024 * 1024 * 1024,
121+
"Size of volume and disk offering should match")
121122

122123
old_root_vol = Volume.list(self.apiclient, id=old_root_vol.id)
123124
self.assertEqual(old_root_vol, None, "Old volume should be deleted")

0 commit comments

Comments
 (0)