Merge pull request #48211 from rallytime/virt-test

[Py3] Fix get_disks test in virt module unittests
This commit is contained in:
Nicole Thomas 2018-06-20 09:45:00 -04:00 committed by GitHub
commit e9e2295447
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -643,10 +643,10 @@ class VirtTestCase(TestCase, LoaderModuleMockMixin):
self.set_mock_vm("test-vm", xml)
disks = virt.get_disks('test-vm')
disk = disks[list(disks)[0]]
disk = disks.get('vda')
self.assertEqual('/disks/test.qcow2', disk['file'])
self.assertEqual('disk', disk['type'])
cdrom = disks[list(disks)[1]]
cdrom = disks.get('hda')
self.assertEqual('/disks/test-cdrom.iso', cdrom['file'])
self.assertEqual('cdrom', cdrom['type'])