Browse Source

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
tags/1.0.0
Shuquan Huang 3 years ago
parent
commit
facfa96397
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      zaqarclient/tests/queues/queues.py

+ 1
- 1
zaqarclient/tests/queues/queues.py View File

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

Loading…
Cancel
Save