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: Iad3f8fbb23a8b0f9e5ae4f304799465724c1a433 Closes-bug: #1280522
This commit is contained in:
@@ -59,4 +59,4 @@ class TestSerializableComparable(test_base.BaseTestCase):
|
||||
def test_childclass_hash(self):
|
||||
# Ensure __hash__ is None
|
||||
obj = SerializableComparableTesting('hello', 'world')
|
||||
self.assertEqual(None, obj.__hash__)
|
||||
self.assertIsNone(obj.__hash__)
|
||||
|
||||
Reference in New Issue
Block a user