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:
Shuquan Huang
2015-12-17 11:31:29 +08:00
parent 15e4454e68
commit cfcef973e8
3 changed files with 6 additions and 6 deletions

View File

@@ -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__)