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: I9410018cada9503accd6191cfdd3f12ab1c8ba3d
Closes-bug: #1280522
tags/1.7.0
Shuquan Huang 3 years ago
parent
commit
80d562ac3c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      manilaclient/tests/unit/v2/test_type_access.py

+ 1
- 1
manilaclient/tests/unit/v2/test_type_access.py View File

@@ -67,7 +67,7 @@ class TypeAccessTest(utils.TestCase):
67 67
             access = manager.list(share_type=share_type)
68 68
 
69 69
             self.assertFalse(manager._list.called)
70
-            self.assertEqual(None, access)
70
+            self.assertIsNone(access)
71 71
 
72 72
     @ddt.data("1.0", "2.0", "2.6", "2.7")
73 73
     def test_add_project_access(self, microversion):

Loading…
Cancel
Save