Change assertTrue(isinstance()) by optimal assert

Some of tests use different method of assertTrue(isinstance(A, B)).
The correct way is to use assertIsInstance(A,B) provided by testtools.

Change-Id: Ib04a2fd4b6545bf41b14b4366c11f4d7329227e6
Closes-bug: #1268480
This commit is contained in:
Vu Cong Tuan 2017-06-07 14:49:24 +07:00
parent 821e29f6d7
commit 96c304b9b7
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ class HttpClientTest(utils.BaseTestCase):
resp, body = client.json_request('GET', '/v1/resources')
self.assertEqual(resp, fake_resp)
self.assertTrue(isinstance(body, list))
self.assertIsInstance(body, list)
def test_server_success_body_json(self):
err = _get_error_body()