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
changes/42/340642/1
yuyafei 6 years ago
parent 3979749f79
commit 2fa8f65991
  1. 2
      os_brick/tests/initiator/test_linuxscsi.py

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

Loading…
Cancel
Save