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 testtools.
There has one more place should be modified.
Closes-bug: #1268480
Reviewed: https:/ /review. openstack. org/264245 /git.openstack. org/cgit/ openstack/ python- manilaclient/ commit/ ?id=1a9d0b713dd 6e4a990d60ab81d e9e57cf1845292
Committed: https:/
Submitter: Jenkins
Branch: master
commit 1a9d0b713dd6e4a 990d60ab81de9e5 7cf1845292
Author: LiuNanke <email address hidden>
Date: Thu Jan 7 00:03:25 2016 +0800
Replace assertTrue( isinstance( )) with assertIsInstance()
Some of tests use different method of assertTrue( isinstance( A, B)) or (type(A) , B). The correct way is to use assertIsInstance(A,
assertEqual
B) provided by testtools.
There has one more place should be modified.
Closes-bug: #1268480
Change-Id: I05d1b75289e193 a32bd4d0ba0557a f3fad686880