aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/tests/unit/common/test_ansible_common.py
diff options
context:
space:
mode:
authorEmma Foley <emma.l.foley@intel.com>2018-01-25 23:10:31 +0000
committerEmma Foley <emma.l.foley@intel.com>2018-03-02 11:54:15 +0000
commit97cb29356bee55639cb3e3343aae50abec2d329e (patch)
treede612ec84d22ce8c4089831138dfd5e5b0805c8e /yardstick/tests/unit/common/test_ansible_common.py
parent23c32c26ccba99c5307c865dfb7673cf5e6e1acc (diff)
Replace assertEqual(None, xx) with assertIsNone(xx)
Change-Id: Ie956d8064a8fbcbd3d56c5a79c4c613d35184af4 JIRA: YARDSTICK-942 Signed-off-by: Emma Foley <emma.l.foley@intel.com>
Diffstat (limited to 'yardstick/tests/unit/common/test_ansible_common.py')
-rw-r--r--yardstick/tests/unit/common/test_ansible_common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yardstick/tests/unit/common/test_ansible_common.py b/yardstick/tests/unit/common/test_ansible_common.py
index 07befa66b..b01195fcc 100644
--- a/yardstick/tests/unit/common/test_ansible_common.py
+++ b/yardstick/tests/unit/common/test_ansible_common.py
@@ -99,7 +99,7 @@ class AnsibleNodeTestCase(unittest.TestCase):
def test_ansible_node_getattr(self):
a = ansible_common.AnsibleNode({"name": "name"})
- self.assertEqual(getattr(a, "nosuch", None), None)
+ self.assertIsNone(getattr(a, "nosuch", None))
class AnsibleNodeDictTestCase(unittest.TestCase):