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
This commit is contained in:
llg8212 2014-02-15 12:42:56 +08:00
parent 24755ff21f
commit 9dcd2ec832
1 changed files with 1 additions and 1 deletions

View File

@ -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."""