Commit f15ed03c authored by Łukasz Nowak's avatar Łukasz Nowak

New logic.

parent e908c7f1
...@@ -148,7 +148,12 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin): ...@@ -148,7 +148,12 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
def stepCheckThreeTopLevelSimulationMovement(self, sequence, **kw): def stepCheckThreeTopLevelSimulationMovement(self, sequence, **kw):
hosting_subscription = self.portal.portal_catalog.getResultValue( hosting_subscription = self.portal.portal_catalog.getResultValue(
uid=sequence['hosting_subscription_uid']) uid=sequence['hosting_subscription_uid'])
self.assertEqual(2, self.portal.portal_catalog.countResults( # 4 open order lines:
# * one without dates
# * one with start date
# * one with start date and stop date
# * one with stop date extended by test
self.assertEqual(4, self.portal.portal_catalog.countResults(
default_aggregate_uid=sequence['hosting_subscription_uid'], default_aggregate_uid=sequence['hosting_subscription_uid'],
portal_type='Open Sale Order Line')[0][0] portal_type='Open Sale Order Line')[0][0]
) )
......
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