Merge "Replace assertTrue(isinstance()) with assertIsInstance()"

This commit is contained in:
Jenkins
2017-06-30 21:03:45 +00:00
committed by Gerrit Code Review

View File

@@ -202,7 +202,7 @@ class TestUtils(testtools.TestCase):
# Proxy object should succeed in behaving as the
# wrapped object
self.assertTrue(isinstance(proxy, type(gen_obj)))
self.assertIsInstance(proxy, type(gen_obj))
# Initially request_ids should be empty
self.assertEqual([], proxy.request_ids)