From 20d298dc7a7796baea635874e0b85d36b1806c08 Mon Sep 17 00:00:00 2001 From: Shuquan Huang Date: Thu, 17 Dec 2015 21:54:00 +0800 Subject: [PATCH] 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 --- glanceclient/tests/unit/v2/test_images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glanceclient/tests/unit/v2/test_images.py b/glanceclient/tests/unit/v2/test_images.py index 15732280..ca64e553 100644 --- a/glanceclient/tests/unit/v2/test_images.py +++ b/glanceclient/tests/unit/v2/test_images.py @@ -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'