Replace assertEqual(None, *) with assertIsNone

Replace assertEqual(None, *) with assertIsNone in tests

Change-Id: I257c479b7a23e39178d292c347d04ad979c48f0f
Closes-bug: #1280522
This commit is contained in:
Kan 2016-01-05 03:17:12 +00:00
parent 1d2076891f
commit 0566fc979f

View File

@ -37,6 +37,6 @@ class TestBifrostInventoryUnit(base.TestCase):
def test__val_or_none(self):
array = ['no', '', 'yes']
self.assertEqual('no', inventory._val_or_none(array, 0))
self.assertEqual(None, inventory._val_or_none(array, 1))
self.assertIsNone(inventory._val_or_none(array, 1))
self.assertEqual('yes', inventory._val_or_none(array, 2))
self.assertEqual(None, inventory._val_or_none(array, 4))
self.assertIsNone(inventory._val_or_none(array, 4))