Merge "Utilize assertIsInstance"
This commit is contained in:
commit
e634ba68e0
@ -158,7 +158,7 @@ class NvpApiRequestEventletTest(base.BaseTestCase):
|
||||
|
||||
self.req._issue_request()
|
||||
LOG.info('request_error: %s' % self.req._request_error)
|
||||
self.assertTrue(isinstance(self.req._request_error, Exception))
|
||||
self.assertIsInstance(self.req._request_error, Exception)
|
||||
self.assertTrue(self.client.acquire_connection.called)
|
||||
|
||||
def test_issue_request_handle_none_sock(self):
|
||||
|
@ -358,9 +358,7 @@ class TestMetaInterfaceDriver(TestBase):
|
||||
def test_get_driver_by_network_id(self):
|
||||
meta_interface = interface.MetaInterfaceDriver(self.conf)
|
||||
driver = meta_interface._get_driver_by_network_id('test')
|
||||
self.assertTrue(isinstance(
|
||||
driver,
|
||||
interface.OVSInterfaceDriver))
|
||||
self.assertIsInstance(driver, interface.OVSInterfaceDriver)
|
||||
|
||||
def test_set_device_plugin_tag(self):
|
||||
meta_interface = interface.MetaInterfaceDriver(self.conf)
|
||||
|
Loading…
Reference in New Issue
Block a user