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
This commit is contained in:
Shuquan Huang 2015-12-17 22:15:25 +08:00
parent cec45e27a1
commit 0a54601753

View File

@ -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'))