diff options
| author | Xi Yang <yang.xi@99cloud.net> | 2015-12-25 13:14:33 +0800 |
|---|---|---|
| committer | Xi Yang <yang.xi@99cloud.net> | 2015-12-25 13:14:33 +0800 |
| commit | 8210ba7a557a44c322ff3adddcbc98072a978e11 (patch) | |
| tree | deb90e7cd5b8a80b208ce750cb3e33040e8dce78 /openstackclient/tests/common | |
| parent | d1311f9742ad93198b9ca72f47d51710e17ced38 (diff) | |
| download | python-openstackclient-8210ba7a557a44c322ff3adddcbc98072a978e11.tar.gz | |
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
Diffstat (limited to 'openstackclient/tests/common')
| -rw-r--r-- | openstackclient/tests/common/test_parseractions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/tests/common/test_parseractions.py b/openstackclient/tests/common/test_parseractions.py index b75c4814..0afbdb7a 100644 --- a/openstackclient/tests/common/test_parseractions.py +++ b/openstackclient/tests/common/test_parseractions.py @@ -101,7 +101,7 @@ class TestKeyValueAction(utils.TestCase): # There should be no red or blue expect = {'green': '100%'} self.assertDictEqual(expect, actual) - self.assertEqual(None, failhere) + self.assertIsNone(failhere) class TestNonNegativeAction(utils.TestCase): |
