]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Utilizes assertIsNone and assertIsNotNone
authorZhongyue Luo <zhongyue.nah@intel.com>
Wed, 9 Oct 2013 01:54:30 +0000 (09:54 +0800)
committerZhongyue Luo <zhongyue.nah@intel.com>
Wed, 9 Oct 2013 01:58:12 +0000 (09:58 +0800)
commit7567cb5fb6a4201b819d05fcea2bf2b2a34b9031
tree87f1528667fadc7d49284c797eb9116330f26ea6
parentb00e307d7067e4b9cc86739291668be5b518badf
Utilizes assertIsNone and assertIsNotNone

Using assertEqual/assertNotEqual to test if an element
is or is not None is too python2.4.
Our unit testing framework supports assertIsNone and assertIsNotNone
which were created for these types of tests.

Change-Id: I2e430e87dd0222b194a84f2928ad36aac26aaba6
26 files changed:
cinder/tests/api/contrib/test_admin_actions.py
cinder/tests/api/openstack/test_wsgi.py
cinder/tests/api/test_xmlutil.py
cinder/tests/api/v1/test_limits.py
cinder/tests/api/v2/test_limits.py
cinder/tests/brick/test_brick_connector.py
cinder/tests/db/test_finish_migration.py
cinder/tests/db/test_qos_specs.py
cinder/tests/image/test_glance.py
cinder/tests/scheduler/test_host_manager.py
cinder/tests/test_backup_swift.py
cinder/tests/test_db_api.py
cinder/tests/test_hds.py
cinder/tests/test_huawei_hvs.py
cinder/tests/test_huawei_t_dorado.py
cinder/tests/test_netapp_nfs.py
cinder/tests/test_policy.py
cinder/tests/test_quota.py
cinder/tests/test_rbd.py
cinder/tests/test_solidfire.py
cinder/tests/test_storwize_svc.py
cinder/tests/test_utils.py
cinder/tests/test_vmware_vmdk.py
cinder/tests/test_volume.py
cinder/tests/test_volume_configuration.py
cinder/tests/test_volume_types.py