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: I3699fca674c9d97b09308155fbc92aaed929d87f
Closes-Bug:#1280522
tags/1.5.0
yuyafei 2 years ago
parent
commit
2fa8f65991
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      os_brick/tests/initiator/test_linuxscsi.py

+ 1
- 1
os_brick/tests/initiator/test_linuxscsi.py View File

@@ -508,7 +508,7 @@ loop0                                     0"""
508 508
         size = 'junk'
509 509
         mock_execute.return_value = (size, None)
510 510
         ret_size = self.linuxscsi.get_device_size('/dev/fake')
511
-        self.assertEqual(None, ret_size)
511
+        self.assertIsNone(ret_size)
512 512
 
513 513
         size_bad = '1024\n'
514 514
         size_good = 1024

Loading…
Cancel
Save