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: If4893a55b2fede30a796a2f1080477b7c92e5d4c
Closes-bug: #1280522
tags/4.0.0^0
Shuquan Huang 3 years ago
parent
commit
8eab42dc79
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      barbicanclient/tests/test_barbican.py

+ 1
- 1
barbicanclient/tests/test_barbican.py View File

@@ -168,7 +168,7 @@ class WhenTestingBarbicanCLI(test_client.BaseEntityResource):
168 168
                          httpclient.interface)
169 169
         self.assertEqual(client._DEFAULT_SERVICE_TYPE, httpclient.service_type)
170 170
         self.assertEqual(client._DEFAULT_API_VERSION, httpclient.version)
171
-        self.assertEqual(None, httpclient.service_name)
171
+        self.assertIsNone(httpclient.service_name)
172 172
 
173 173
     def test_endpoint_filter_kwargs_set_correctly(self):
174 174
         from testtools.content import text_content

Loading…
Cancel
Save