From 34fc5f82dd77a899569345a9867fc9193c45be8d Mon Sep 17 00:00:00 2001 From: Einst Crazy Date: Wed, 6 Jan 2016 10:35:24 +0800 Subject: [PATCH] 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 --- cinder/tests/unit/test_volume.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.45.2