Browse Source

Replace assertEqual(None, *) with assertIsNone

Replace assertEqual(None, *) with assertIsNone in tests

Change-Id: I257c479b7a23e39178d292c347d04ad979c48f0f
Closes-bug: #1280522
tags/1.0.0
Kan 3 years ago
parent
commit
0566fc979f
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      bifrost/tests/unit/test_inventory.py

+ 2
- 2
bifrost/tests/unit/test_inventory.py View File

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

Loading…
Cancel
Save