test_host.py (nova-22.0.0) | : | test_host.py (nova-22.0.1) | ||
---|---|---|---|---|
skipping to change at line 1381 | skipping to change at line 1381 | |||
# Assert the classes we're using currently | # Assert the classes we're using currently | |||
# NOTE(mdbooth): We're obviously asserting the wrong classes here | # NOTE(mdbooth): We're obviously asserting the wrong classes here | |||
# because we're explicitly asserting the faked versions. This is a | # because we're explicitly asserting the faked versions. This is a | |||
# concession to avoid a test dependency on libvirt. | # concession to avoid a test dependency on libvirt. | |||
self.assertIn(fakelibvirt.virDomain, proxy_classes) | self.assertIn(fakelibvirt.virDomain, proxy_classes) | |||
self.assertIn(fakelibvirt.virConnect, proxy_classes) | self.assertIn(fakelibvirt.virConnect, proxy_classes) | |||
self.assertIn(fakelibvirt.virNodeDevice, proxy_classes) | self.assertIn(fakelibvirt.virNodeDevice, proxy_classes) | |||
self.assertIn(fakelibvirt.virSecret, proxy_classes) | self.assertIn(fakelibvirt.virSecret, proxy_classes) | |||
# Assert that we filtered out libvirtError | # Assert that we filtered out libvirtError and any private classes | |||
self.assertNotIn(fakelibvirt.libvirtError, proxy_classes) | self.assertNotIn(fakelibvirt.libvirtError, proxy_classes) | |||
self.assertNotIn(fakelibvirt._EventAddHandleFunc, proxy_classes) | ||||
def test_tpool_get_connection(self): | def test_tpool_get_connection(self): | |||
# Test that Host.get_connection() returns a tpool.Proxy | # Test that Host.get_connection() returns a tpool.Proxy | |||
self.assertIsInstance(self.conn, tpool.Proxy) | self.assertIsInstance(self.conn, tpool.Proxy) | |||
def test_tpool_instance_lookup(self): | def test_tpool_instance_lookup(self): | |||
# Test that domains returns by our libvirt connection are also proxied | # Test that domains returns by our libvirt connection are also proxied | |||
dom = self.conn.lookupByUUIDString(uuids.vm1) | dom = self.conn.lookupByUUIDString(uuids.vm1) | |||
self.assertIsInstance(dom, tpool.Proxy) | self.assertIsInstance(dom, tpool.Proxy) | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added |