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:
Shuquan Huang 2015-12-17 11:24:02 +08:00
parent de2f25b6cf
commit 95d40eacf3
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ class CommonUtilsTest(TestCase):
self.cmpUtils.diff_dicts(expected, provided)) self.cmpUtils.diff_dicts(expected, provided))
def test_yamlutils_get_dict_missing_file(self): 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): def test_yamlutils_get_dict(self):
yaml_file = os.path.join( yaml_file = os.path.join(