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: I6059a4b58bf7eb484992fa695d435cea7325e21b
Closes-bug: #1280522
tags/4.1.0
Shuquan Huang 3 years ago
parent
commit
9d45510dda
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      solum/tests/common/test_clients.py

+ 1
- 1
solum/tests/common/test_clients.py View File

@@ -47,7 +47,7 @@ class ClientsTest(base.BaseTestCase):
47 47
         mock_sess.return_value = "keystone_session"
48 48
         mock_call.return_value = "barbican_client_handle"
49 49
         obj = clients.OpenStackClients(None)
50
-        self.assertEqual(None, obj._barbican)
50
+        self.assertIsNone(obj._barbican)
51 51
         obj.barbican().admin_client
52 52
         self.assertNotEqual(None, obj._barbican)
53 53
         mock_call.assert_called_once_with(session='keystone_session')

Loading…
Cancel
Save