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: Iec94667bac8b2e3eeec466985194bbd6f5b35d0c
Closes-bug: #1280522
tags/2.0.0.0b2
zhangguoqing 3 years ago
parent
commit
89c3577f2f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      manila/tests/share/drivers/emc/plugins/vnx/test_object_manager.py

+ 1
- 1
manila/tests/share/drivers/emc/plugins/vnx/test_object_manager.py View File

@@ -292,7 +292,7 @@ class FileSystemTestCase(StorageObjectTestCase):
292 292
         for prop in property_map:
293 293
             self.assertIn(prop, out)
294 294
 
295
-        self.assertEqual(None, out['dataServicePolicies'])
295
+        self.assertIsNone(out['dataServicePolicies'])
296 296
 
297 297
         id = context.get_id(self.fs.filesystem_name)
298 298
         self.assertEqual(self.fs.filesystem_id, id)

Loading…
Cancel
Save