From: llg8212 Date: Sat, 15 Feb 2014 04:42:56 +0000 (+0800) Subject: Replace assertEqual(None, *) with assertIsNone in tests X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=9dcd2ec8324fef1018af9161f70c80c76e7b7357;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: Iac9462620bf4ae338998fa6aea7f1514a945059b Closes-Bug:#1280522 --- 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."""