Browse Source

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
tags/2014.1.b3
llg8212 5 years ago
parent
commit
9dcd2ec832
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      cinder/tests/test_volume.py

+ 1
- 1
cinder/tests/test_volume.py View File

@@ -1104,7 +1104,7 @@ class VolumeTestCase(BaseVolumeTestCase):
1104 1104
             conn_info = self.volume.initialize_connection(self.context,
1105 1105
                                                           'fake_volume_id',
1106 1106
                                                           connector)
1107
-            self.assertEqual(None, conn_info['data']['qos_specs'])
1107
+            self.assertIsNone(conn_info['data']['qos_specs'])
1108 1108
 
1109 1109
     def test_run_attach_detach_volume_for_instance(self):
1110 1110
         """Make sure volume can be attached and detached from instance."""

Loading…
Cancel
Save