diff options
author | Van Hung Pham <hungpv@vn.fujitsu.com> | 2017-06-14 11:03:10 +0700 |
---|---|---|
committer | Van Hung Pham <hungpv@vn.fujitsu.com> | 2017-06-14 11:03:10 +0700 |
commit | 7791110b2fe4b01dc58078ce3358b4b8a5ead0f4 (patch) | |
tree | e2d78ba0af2a8a73ae7993c844489f78cd9b4ac7 | |
parent | d3d405cfb21a2405fb1f300cc235b1d0ce8d8ae7 (diff) | |
download | python-glanceclient-7791110b2fe4b01dc58078ce3358b4b8a5ead0f4.tar.gz |
Replace assertTrue(isinstance()) with assertIsInstance()
Some of tests use different method of assertTrue(isinstance(A, B))
or assertEqual(type(A), B). The correct way is to use
assertIsInstance(A, B) provided by test tools.
Change-Id: Ibb5e5f848c5632f7c1895c47b8c1a938f2c746c3
-rw-r--r-- | glanceclient/tests/unit/test_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glanceclient/tests/unit/test_utils.py b/glanceclient/tests/unit/test_utils.py index c081026..cd87e21 100644 --- a/glanceclient/tests/unit/test_utils.py +++ b/glanceclient/tests/unit/test_utils.py @@ -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) |