commit c297309aff29df550633ab956b99bb3d74c7f43c
Author: LiuNanke <email address hidden>
Date: Sun Jan 10 03:18:08 2016 +0800
Replace assertTrue(isinstance()) by optimal assert
assertTrue(isinstance(A, B)) or assertEqual(type(A), B) in tests
should be replaced by assertIsInstance(A, B) provided by testtools.
Related-bug: #1268480
Reviewed: https:/ /review. openstack. org/265583 /git.openstack. org/cgit/ openstack/ python- cinderclient/ commit/ ?id=c297309aff2 9df550633ab956b 99bb3d74c7f43c
Committed: https:/
Submitter: Jenkins
Branch: master
commit c297309aff29df5 50633ab956b99bb 3d74c7f43c
Author: LiuNanke <email address hidden>
Date: Sun Jan 10 03:18:08 2016 +0800
Replace assertTrue( isinstance( )) by optimal assert
assertTrue( isinstance( A, B)) or assertEqual( type(A) , B) in tests
should be replaced by assertIsInstance(A, B) provided by testtools.
Related-bug: #1268480
Change-Id: I755702d0f6e982 d7cba173fbbdb86 feb8ab384a0