]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Utilize assertIsInstance
authorZhongyue Luo <zhongyue.nah@intel.com>
Fri, 30 Aug 2013 11:50:26 +0000 (20:50 +0900)
committerGerrit Code Review <review@openstack.org>
Fri, 6 Sep 2013 01:42:07 +0000 (01:42 +0000)
commitbf02cf3eefa2d176d146c8d4f5feda3e07cabe8a
tree172dad71afcc731d04db1d919d2e0ba9604ba150
parentb2e66cba6d12d9ff762bbae48171d581f21ae2bc
Utilize assertIsInstance

Using assertTrue and the 'isinstance' function to test
if an object is in an instance of some class is too python2.4.
Our unit testing framework supports assertIsInstance which was created
for these types of tests. Let's use assertIsInstance for these tests.

Change-Id: I2c931a52ae20f072f53210bf3dedb47127b413c0
cinder/tests/image/test_glance.py
cinder/tests/scheduler/test_scheduler.py
cinder/tests/test_migrations.py
cinder/tests/test_quota.py