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:
parent
24755ff21f
commit
9dcd2ec832
|
@ -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."""
|
||||
|
|
Loading…
Reference in New Issue