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: Icba7c9d4664bd644544cce15ad2fba45b1281d38
Closes-bug: #1280522
tags/2.0.0.0b2
Shuquan Huang 3 years ago
parent
commit
0a54601753
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      zaqar/tests/unit/storage/test_impl_mongodb.py

+ 1
- 1
zaqar/tests/unit/storage/test_impl_mongodb.py View File

@@ -86,7 +86,7 @@ class MongodbUtilsTest(MongodbSetupMixin, testing.TestBase):
86 86
         self.assertEqual('123/', utils.scope_queue_name(None, '123'))
87 87
 
88 88
     def test_descope_queue_name(self):
89
-        self.assertEqual(None, utils.descope_queue_name('/'))
89
+        self.assertIsNone(utils.descope_queue_name('/'))
90 90
         self.assertEqual('some-pig', utils.descope_queue_name('/some-pig'))
91 91
         self.assertEqual('some-pig',
92 92
                          utils.descope_queue_name('radiant/some-pig'))

Loading…
Cancel
Save