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: Id1cc5e677a8df90afd07ed51c4845e90dfee0cc3
Closes-Bug: #1280522
tags/1.0.0.0b2
liangjingtao 2 years ago
parent
commit
771c5e69cb
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      searchlight/tests/unit/test_neutron_floatingip.py

+ 1
- 1
searchlight/tests/unit/test_neutron_floatingip.py View File

@@ -74,7 +74,7 @@ class TestFloatingIPLoaderPlugin(test_utils.BaseTestCase):
74 74
 
75 75
     def test_parent_type(self):
76 76
         # Explicitly not setting a parent since there'll only ever be one
77
-        self.assertEqual(None, self.plugin.parent_plugin_type())
77
+        self.assertIsNone(self.plugin.parent_plugin_type())
78 78
 
79 79
     def test_rbac_filter(self):
80 80
         fake_request = unit_test_utils.get_fake_request(

Loading…
Cancel
Save