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: I7735a5be7515655a4d4bb87b6a02ce794ab5b790
Closes-bug: #1280522
changes/17/259017/1
Shuquan Huang 3 years ago
parent
commit
b9e08cfcb6
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      cueclient/tests/unit/v1/test_clusters.py

+ 1
- 1
cueclient/tests/unit/v1/test_clusters.py View File

@@ -315,4 +315,4 @@ class TestDeleteCluster(base.TestCueBase):
315 315
         result = self.execute(clusters.DeleteClusterCommand, arglist,
316 316
                               verifylist)
317 317
         self.assert_called('DELETE', '/clusters/' + cluster_id)
318
-        self.assertEqual(None, result)
318
+        self.assertIsNone(result)

Loading…
Cancel
Save