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: Ie58695138488a39cbb49de7fd20301b3ef5bcac2
Closes-bug: #1280522
tags/2.2.0
zhangguoqing 3 years ago
parent
commit
a21e2ca454
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      keystoneauth1/tests/unit/test_fixtures.py

+ 1
- 1
keystoneauth1/tests/unit/test_fixtures.py View File

@@ -266,7 +266,7 @@ class V3TokenTests(utils.TestCase):
266 266
 
267 267
     def test_empty_default_service_providers(self):
268 268
         token = fixture.V3Token()
269
-        self.assertEqual(None, token.service_providers)
269
+        self.assertIsNone(token.service_providers)
270 270
 
271 271
     def test_service_providers(self):
272 272
         def new_sp():

Loading…
Cancel
Save