Replace assertEqual(None, *) with assertIsNone in tests
Replace assertEqual(None, *) with assertIsNone in tests to have more clear messages in case of failure. Change-Id: I23508ba9234d12b37d19adf5bb31dcdbbed9742c Closes-bug: #1280522
This commit is contained in:
parent
de2f25b6cf
commit
95d40eacf3
@ -168,7 +168,7 @@ class CommonUtilsTest(TestCase):
|
||||
self.cmpUtils.diff_dicts(expected, provided))
|
||||
|
||||
def test_yamlutils_get_dict_missing_file(self):
|
||||
self.assertEqual(None, self.yamlUtils.get_dict('./no_file.yaml'))
|
||||
self.assertIsNone(self.yamlUtils.get_dict('./no_file.yaml'))
|
||||
|
||||
def test_yamlutils_get_dict(self):
|
||||
yaml_file = os.path.join(
|
||||
|
Loading…
x
Reference in New Issue
Block a user