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: I0578063d719293d5f2e838241c2db96454f7e4b6
Closes-bug: #1280522
tags/9
Shuquan Huang 3 years ago
parent
commit
a77f7028b3
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      tempest/tests/test_glance_http.py

+ 3
- 3
tempest/tests/test_glance_http.py View File

@@ -123,9 +123,9 @@ class TestGlanceHTTPClient(base.TestCase):
123 123
     def test_get_connection_kwargs_default_for_https(self):
124 124
         kwargs = self.client._get_connection_kwargs('https')
125 125
         self.assertEqual(600, kwargs['timeout'])
126
-        self.assertEqual(None, kwargs['ca_certs'])
127
-        self.assertEqual(None, kwargs['cert_file'])
128
-        self.assertEqual(None, kwargs['key_file'])
126
+        self.assertIsNone(kwargs['ca_certs'])
127
+        self.assertIsNone(kwargs['cert_file'])
128
+        self.assertIsNone(kwargs['key_file'])
129 129
         self.assertEqual(False, kwargs['insecure'])
130 130
         self.assertEqual(True, kwargs['ssl_compression'])
131 131
         self.assertEqual(6, len(kwargs.keys()))

Loading…
Cancel
Save