Fix misuse of assertTrue
Replace assertTrue with assertEqual. Change-Id: I9ffa265082a8c67bccfe3459426f18b9a51bd46d Closes-Bug: #1647993
This commit is contained in:
parent
4354828605
commit
71dcb52ecc
@ -577,7 +577,7 @@ class _TestSRIOVPciDeviceObject(object):
|
||||
|
||||
# check if parent device status has been changed to UNAVAILABLE
|
||||
parent = self._get_parent_by_address(devobj.parent_addr)
|
||||
self.assertTrue(fields.PciDeviceStatus.UNAVAILABLE, parent.status)
|
||||
self.assertEqual(fields.PciDeviceStatus.UNAVAILABLE, parent.status)
|
||||
|
||||
def test_claim_PF_fail(self):
|
||||
self._create_fake_instance()
|
||||
|
Loading…
Reference in New Issue
Block a user