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
This commit is contained in:
liangjingtao 2016-07-12 18:41:03 +08:00
parent 8ba3bf9cde
commit 771c5e69cb
1 changed files with 1 additions and 1 deletions

View File

@ -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(