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: I36db8bdcb67b8cc0a3bf1f063b4a7b42955b100b
Closes-bug: #1280522
tags/2.2.0
Shuquan Huang 3 years ago
parent
commit
a63f15272c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      ceilometerclient/tests/unit/test_shell.py

+ 1
- 1
ceilometerclient/tests/unit/test_shell.py View File

@@ -248,7 +248,7 @@ class ShellEndpointTest(ShellTestBase):
248 248
     def _test_endpoint_and_token(self, token_name, endpoint_name, mocked):
249 249
         args = ['--debug', token_name, 'fake-token',
250 250
                 endpoint_name, 'http://fake-url', 'alarm-list']
251
-        self.assertEqual(None, ceilometer_shell.main(args))
251
+        self.assertIsNone(ceilometer_shell.main(args))
252 252
         args, kwargs = mocked.call_args
253 253
         self.assertEqual('http://fake-url', kwargs.get('endpoint'))
254 254
         self.assertEqual('fake-token', kwargs.get('token'))

Loading…
Cancel
Save