Browse Source

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
tags/0.4.0
Shuquan Huang 3 years ago
parent
commit
95d40eacf3
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      translator/tests/test_utils.py

+ 1
- 1
translator/tests/test_utils.py View File

@@ -168,7 +168,7 @@ class CommonUtilsTest(TestCase):
168 168
             self.cmpUtils.diff_dicts(expected, provided))
169 169
 
170 170
     def test_yamlutils_get_dict_missing_file(self):
171
-        self.assertEqual(None, self.yamlUtils.get_dict('./no_file.yaml'))
171
+        self.assertIsNone(self.yamlUtils.get_dict('./no_file.yaml'))
172 172
 
173 173
     def test_yamlutils_get_dict(self):
174 174
         yaml_file = os.path.join(

Loading…
Cancel
Save