def test_list_vms(self): vms = list_vms() testify.assert_equal(vms[0]['name'], self.vm0['name'], 'name mismatch') testify.assert_equal(vms[1]['name'], self.vm1['name'], 'name mismatch') testify.assert_equal(vms[2]['name'], self.vm2['name'], 'name mismatch')
def test_list_vms(self): vms = list_vms() testify.assert_equal(vms[0]['name'], self.vms[0]['name'], 'name mismatch') vm_uuid = uuid.UUID('{%s}' % vms[0]['uuid']) testify.assert_equal(type(vm_uuid), type(uuid.uuid4()), 'no uuid set')