Using assertIsNone() instead of assertEqual(None)

Instead of using assertEqual(None, ***), developers should
use assertIsNone(***).

Change-Id: If91658da3acc621fd5e57b7d11e4f9aebeab50e7
This commit is contained in:
melissaml
2017-07-04 15:14:13 +08:00
parent e39fd72626
commit 34503e780f

View File

@@ -800,7 +800,7 @@ class IloRisTestCase(testtools.TestCase):
_uefi_boot_mode_mock.return_value = False
ret = self.client.get_persistent_boot_device()
get_host_details_mock.assert_called_once_with()
self.assertEqual(ret, None)
self.assertIsNone(ret)
@mock.patch.object(ris.RISOperations, '_get_persistent_boot_devices')
@mock.patch.object(ris.RISOperations, '_is_boot_mode_uefi')