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:
Swapnil Kulkarni (coolsvap) 2016-01-04 19:41:10 +05:30
parent ba1a17a1f2
commit 8b28ced627

View File

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