From 8210ba7a557a44c322ff3adddcbc98072a978e11 Mon Sep 17 00:00:00 2001 From: Xi Yang <yang.xi@99cloud.net> Date: Fri, 25 Dec 2015 13:14:33 +0800 Subject: [PATCH] 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 --- openstackclient/tests/common/test_parseractions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstackclient/tests/common/test_parseractions.py b/openstackclient/tests/common/test_parseractions.py index b75c48140b..0afbdb7af7 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):