From 0a54601753e0b177630665100d2d3480d8a0dc88 Mon Sep 17 00:00:00 2001 From: Shuquan Huang Date: Thu, 17 Dec 2015 22:15:25 +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: Icba7c9d4664bd644544cce15ad2fba45b1281d38 Closes-bug: #1280522 --- zaqar/tests/unit/storage/test_impl_mongodb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zaqar/tests/unit/storage/test_impl_mongodb.py b/zaqar/tests/unit/storage/test_impl_mongodb.py index 19f5e9c4a..3915d8296 100644 --- a/zaqar/tests/unit/storage/test_impl_mongodb.py +++ b/zaqar/tests/unit/storage/test_impl_mongodb.py @@ -86,7 +86,7 @@ class MongodbUtilsTest(MongodbSetupMixin, testing.TestBase): self.assertEqual('123/', utils.scope_queue_name(None, '123')) def test_descope_queue_name(self): - self.assertEqual(None, utils.descope_queue_name('/')) + self.assertIsNone(utils.descope_queue_name('/')) self.assertEqual('some-pig', utils.descope_queue_name('/some-pig')) self.assertEqual('some-pig', utils.descope_queue_name('radiant/some-pig'))