Fix misuse of assertTrue

Replace assertTrue with assertEqual.

Change-Id: I9ffa265082a8c67bccfe3459426f18b9a51bd46d
Closes-Bug: #1647993
This commit is contained in:
Takashi NATSUME 2016-12-07 17:29:51 +09:00
parent 4354828605
commit 71dcb52ecc

View File

@ -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()