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: I2cc0d913d83ea56c323475daddb66a0047564b42
This commit is contained in:
parent
ba1a17a1f2
commit
8b28ced627
@ -99,4 +99,4 @@ class TestCache(testtools.TestCase):
|
||||
self.assertFalse(changed)
|
||||
|
||||
def test_commit_no_cache(self):
|
||||
self.assertEqual(None, cache.commit('neversaved'))
|
||||
self.assertIsNone(cache.commit('neversaved'))
|
||||
|
Loading…
Reference in New Issue
Block a user