Skip to content

Commit

Permalink
Fix misuse of assertTrue
Browse files Browse the repository at this point in the history
Replace assertTrue with assertEqual.

Change-Id: I9ffa265082a8c67bccfe3459426f18b9a51bd46d
Closes-Bug: #1647993
  • Loading branch information
natsumetakashi committed Dec 7, 2016
1 parent 4354828 commit 71dcb52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nova/tests/unit/objects/test_pci_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ def test_allocate_VF(self):

# 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()
Expand Down

0 comments on commit 71dcb52

Please sign in to comment.