Commit 4592c090 authored by Łukasz Nowak's avatar Łukasz Nowak

Fix assertion.

First open order line is create immediately with dates.
parent d562afbf
...@@ -150,11 +150,10 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin): ...@@ -150,11 +150,10 @@ 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'])
# 3 open order lines: # 2 open order lines:
# * one without dates
# * one with start date and stop date # * one with start date and stop date
# * one with stop date extended by test # * one with stop date extended by test
self.assertEqual(3, self.portal.portal_catalog.countResults( self.assertEqual(2, 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