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: I254177113bd9ef579cc227cb10ccb952a6418b4c
Closes-bug: #1280522
This commit is contained in:
Shuquan Huang 2015-12-17 22:05:41 +08:00
parent 2d51367764
commit facfa96397
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ class QueuesV1QueueUnitTest(base.QueuesTestBase):
rst = self.queue.delete_messages('50b68a50d6f5b8c8a7c62b01',
'50b68a50d6f5b8c8a7c62b02')
self.assertEqual(None, rst)
self.assertIsNone(rst)
# NOTE(flaper87): Nothing to assert here,
# just checking our way down to the transport