Commit 9a441a00 authored by Łukasz Nowak's avatar Łukasz Nowak

Use comparision assertions.

parent 3fe70898
...@@ -228,10 +228,10 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -228,10 +228,10 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
free_for_request=1)[0][0] free_for_request=1)[0][0]
def stepCheckSoftwareReleaseAvailableForRequest(self, sequence, **kw): def stepCheckSoftwareReleaseAvailableForRequest(self, sequence, **kw):
self.assertFalse(self._getRequestBasedComputerPartitionCount(sequence) == 0) self.assertNotEqual(0, self._getRequestBasedComputerPartitionCount(sequence))
def stepCheckSoftwareReleaseUnavailableForRequest(self, sequence, **kw): def stepCheckSoftwareReleaseUnavailableForRequest(self, sequence, **kw):
self.assertTrue(self._getRequestBasedComputerPartitionCount(sequence) == 0) self.assertEqual(0, self._getRequestBasedComputerPartitionCount(sequence))
def _getSoftwareReleasePublicTableAmount(self, sequence, **kw): def _getSoftwareReleasePublicTableAmount(self, sequence, **kw):
self.getPortal().portal_skins.changeSkin("Hosting") self.getPortal().portal_skins.changeSkin("Hosting")
...@@ -244,10 +244,10 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -244,10 +244,10 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
return amount return amount
def stepCheckSoftwareReleaseInPublicTable(self, sequence, **kw): def stepCheckSoftwareReleaseInPublicTable(self, sequence, **kw):
self.assertFalse(0, self._getSoftwareReleasePublicTableAmount(sequence)) self.assertNotEqual(0, self._getSoftwareReleasePublicTableAmount(sequence))
def stepCheckSoftwareReleaseNotInPublicTable(self, sequence, **kw): def stepCheckSoftwareReleaseNotInPublicTable(self, sequence, **kw):
self.assertTrue(0, self._getSoftwareReleasePublicTableAmount(sequence)) self.assertEqual(0, self._getSoftwareReleasePublicTableAmount(sequence))
def stepTriggerConfirmPlannedInvoiceAlarm(self, sequence, **kw): def stepTriggerConfirmPlannedInvoiceAlarm(self, sequence, **kw):
sm = getSecurityManager() sm = getSecurityManager()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment