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: Id7b3df39092d6a5ae3f0c35a5b8d33986e46f73b
Closes-bug: #1280522
tags/3.0.0
Shuquan Huang 3 years ago
parent
commit
7cc1f5e5b6

+ 1
- 1
networking_cisco/tests/unit/cisco/device_manager/test_vif_hotplug_plugging_driver.py View File

@@ -135,5 +135,5 @@ class TestVIFHotPlugPluggingDriver(base.BaseTestCase):
135 135
             self.assertEqual(1, mocked_plugin.create_port.call_count)
136 136
             self.assertEqual(True, mock_delete_resources.called)
137 137
             self.assertEqual(1, mock_delete_resources.call_count)
138
-            self.assertEqual(None, result['mgmt_port'])
138
+            self.assertIsNone(result['mgmt_port'])
139 139
             self.assertEqual([], result['ports'])

Loading…
Cancel
Save