Skip to content

Commit 8210ba7

Browse files
author
Xi Yang
committed
Replace assertEqual(None, *) with assertIsNone(*)
This patch is going to replace assertEqual(None, *) with assertIsNone(*) in unit test code to have more clear messages in case of failure. Change-Id: I6f85498347e8fc7cad5ea7afb832b9acda7daafc
1 parent d1311f9 commit 8210ba7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openstackclient/tests/common/test_parseractions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def test_error_values(self):
101101
# There should be no red or blue
102102
expect = {'green': '100%'}
103103
self.assertDictEqual(expect, actual)
104-
self.assertEqual(None, failhere)
104+
self.assertIsNone(failhere)
105105

106106

107107
class TestNonNegativeAction(utils.TestCase):

0 commit comments

Comments
 (0)