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: I517928a81723d28999de2cfb649fc36f893b2ddb
Closes-bug: #1280522
tags/0.9.0
Shuquan Huang 3 years ago
parent
commit
73c3af4b8a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      heatclient/tests/unit/test_template_utils.py

+ 1
- 1
heatclient/tests/unit/test_template_utils.py View File

@@ -439,7 +439,7 @@ class TestGetTemplateContents(testtools.TestCase):
439 439
     def test_get_template_contents_file_none_existing(self):
440 440
         files, tmpl_parsed = template_utils.get_template_contents(
441 441
             existing=True)
442
-        self.assertEqual(None, tmpl_parsed)
442
+        self.assertIsNone(tmpl_parsed)
443 443
         self.assertEqual({}, files)
444 444
 
445 445
     def test_get_template_contents_parse_error(self):

Loading…
Cancel
Save