Commit 99a395df authored by Łukasz Nowak's avatar Łukasz Nowak

Follow up implementation.

parent 1eab1c97
...@@ -34,7 +34,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin): ...@@ -34,7 +34,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
SlapLogout \ SlapLogout \
LoginERP5TypeTestCase \ LoginERP5TypeTestCase \
CheckSoftwareReleaseUnavailableForRequest \ CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \ CheckSoftwareReleaseNotInSoftwareCatalog \
CheckSiteConsistency \ CheckSiteConsistency \
Logout \ Logout \
' '
......
...@@ -257,18 +257,14 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -257,18 +257,14 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
def stepCheckSoftwareReleaseUnavailableForRequest(self, sequence, **kw): def stepCheckSoftwareReleaseUnavailableForRequest(self, sequence, **kw):
self.assertEqual(0, self._getRequestBasedComputerPartitionCount(sequence)) self.assertEqual(0, self._getRequestBasedComputerPartitionCount(sequence))
def _getSoftwareReleasePublicTableAmount(self, sequence, **kw): def stepCheckSoftwareReleaseNotInSoftwareCatalog(self, sequence, **kw):
self.getPortal().portal_skins.changeSkin("Hosting") software_release = self.portal.portal_catalog.getResultValue(
request = self.app.REQUEST uid=sequence['software_release_uid'])
request.set('portal_skin', "Hosting") software_product = software_release.getAggregateValue(
amount = len(self.portal.Base_getAvailableSoftwareReleaseList( portal_type='Software Product')
**{'software_release.url': sequence['software_release_uri']})) # if software release is back referenced from product, it is preferred
self.getPortal().portal_skins.changeSkin("View") self.assertFalse(software_product.getRelativeUrl() \
request.set('portal_skin', "View") in software_product.getAggregateList())
return amount
def stepCheckSoftwareReleaseNotInPublicTable(self, sequence, **kw):
self.assertEqual(0, self._getSoftwareReleasePublicTableAmount(sequence))
def stepCheckComputerTradeConditionDestinationSectionTestVifibCustomer( def stepCheckComputerTradeConditionDestinationSectionTestVifibCustomer(
self, sequence, **kw): self, sequence, **kw):
......
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