From 9dcd2ec8324fef1018af9161f70c80c76e7b7357 Mon Sep 17 00:00:00 2001 From: llg8212 Date: Sat, 15 Feb 2014 12:42:56 +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: Iac9462620bf4ae338998fa6aea7f1514a945059b Closes-Bug:#1280522 --- cinder/tests/test_volume.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/tests/test_volume.py b/cinder/tests/test_volume.py index 841b05ec3..f2b11ab02 100644 --- a/cinder/tests/test_volume.py +++ b/cinder/tests/test_volume.py @@ -1104,7 +1104,7 @@ class VolumeTestCase(BaseVolumeTestCase): conn_info = self.volume.initialize_connection(self.context, 'fake_volume_id', connector) - self.assertEqual(None, conn_info['data']['qos_specs']) + self.assertIsNone(conn_info['data']['qos_specs']) def test_run_attach_detach_volume_for_instance(self): """Make sure volume can be attached and detached from instance.""" -- 2.45.2