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: I384fbe8722af07bcaa4e2610384446751a8072bf Closes-bug: #1280522
This commit is contained in:
parent
9bc0018eda
commit
20d298dc7a
|
@ -870,7 +870,7 @@ class TestController(testtools.TestCase):
|
|||
resp = utils.FakeResponse(headers={}, status_code=204)
|
||||
self.controller.http_client.get = mock.Mock(return_value=(resp, None))
|
||||
body = self.controller.data('image_id')
|
||||
self.assertEqual(None, body)
|
||||
self.assertIsNone(body)
|
||||
|
||||
def test_update_replace_prop(self):
|
||||
image_id = '3a4560a1-e585-443e-9b39-553b46ec92d1'
|
||||
|
|
Loading…
Reference in New Issue