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.

There have one more place should be modified.

Change-Id: I53a8f129db0108892b8377edce2dbf19b0b95f5d
Closes-bug: #1280522
tags/1.14.0
LiuNanke 3 years ago
parent
commit
0b270f0bc9
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      os_client_config/tests/test_cloud_config.py

+ 1
- 2
os_client_config/tests/test_cloud_config.py View File

@@ -148,8 +148,7 @@ class TestCloudConfig(base.TestCase):
148 148
         self.assertEqual('volume', cc.get_service_type('volume'))
149 149
         self.assertEqual('http://compute.example.com',
150 150
                          cc.get_endpoint('compute'))
151
-        self.assertEqual(None,
152
-                         cc.get_endpoint('image'))
151
+        self.assertIsNone(cc.get_endpoint('image'))
153 152
         self.assertIsNone(cc.get_service_name('compute'))
154 153
         self.assertEqual('locks', cc.get_service_name('identity'))
155 154
 

Loading…
Cancel
Save