]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Replace assertEqual(*, None) with assertIsNone in tests
authorEinst Crazy <yu.changcai@99cloud.net>
Wed, 6 Jan 2016 02:35:24 +0000 (10:35 +0800)
committerEinst Crazy <yu.changcai@99cloud.net>
Thu, 21 Jan 2016 05:43:47 +0000 (05:43 +0000)
Replace assertEqual(*, None) with assertIsNone in tests to have
more clear messages in case of failure.

Change-Id: If62be1aa29fd420855f42d44865fbdcbab16bf70

cinder/tests/unit/test_volume.py

index 5ea2f09554b5678493278458f8030377e639e82e..86ba29321bbfb5ee8de33c974f5ee012a1fd5e2f 100644 (file)
@@ -7365,7 +7365,7 @@ class LVMVolumeDriverTestCase(DriverTestCase):
         volume = tests_utils.create_volume(self.context, status='available',
                                            size=1, host=CONF.host)
         ret = self.volume.driver.unmanage(volume)
-        self.assertEqual(ret, None)
+        self.assertIsNone(ret)
 
 
 class ISCSITestCase(DriverTestCase):