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
This commit is contained in:
Shuquan Huang 2015-12-17 21:03:01 +08:00
parent 3aecbde47e
commit 8eab42dc79
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ class WhenTestingBarbicanCLI(test_client.BaseEntityResource):
httpclient.interface) httpclient.interface)
self.assertEqual(client._DEFAULT_SERVICE_TYPE, httpclient.service_type) self.assertEqual(client._DEFAULT_SERVICE_TYPE, httpclient.service_type)
self.assertEqual(client._DEFAULT_API_VERSION, httpclient.version) 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): def test_endpoint_filter_kwargs_set_correctly(self):
from testtools.content import text_content from testtools.content import text_content