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
changes/90/258990/2 4.0.0
Shuquan Huang 7 years ago
parent 3aecbde47e
commit 8eab42dc79
  1. 2
      barbicanclient/tests/test_barbican.py

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

Loading…
Cancel
Save