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
changes/49/340849/1
liangjingtao 6 years ago
parent 8ba3bf9cde
commit 771c5e69cb
  1. 2
      searchlight/tests/unit/test_neutron_floatingip.py

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

Loading…
Cancel
Save