From: Einst Crazy Date: Wed, 6 Jan 2016 02:35:24 +0000 (+0800) Subject: Replace assertEqual(*, None) with assertIsNone in tests X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=34fc5f82dd77a899569345a9867fc9193c45be8d;p=openstack-build%2Fcinder-build.git Replace assertEqual(*, None) with assertIsNone in tests Replace assertEqual(*, None) with assertIsNone in tests to have more clear messages in case of failure. Change-Id: If62be1aa29fd420855f42d44865fbdcbab16bf70 --- diff --git a/cinder/tests/unit/test_volume.py b/cinder/tests/unit/test_volume.py index 5ea2f0955..86ba29321 100644 --- a/cinder/tests/unit/test_volume.py +++ b/cinder/tests/unit/test_volume.py @@ -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):