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

Cover more interesting case.

Remove open order line and prove that simulation are correct.
parent 77143759
...@@ -166,17 +166,12 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin): ...@@ -166,17 +166,12 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
precision='month', before=1), month=3)}) precision='month', before=1), month=3)})
def stepCheckThreeTopLevelSimulationMovement(self, sequence, **kw): def stepCheckThreeTopLevelSimulationMovement(self, sequence, **kw):
person = self.portal.person_module['test_vifib_customer'] hosting_subscription = self.portal.portal_catalog.getResultValue(
open_order = self.portal.portal_catalog.getResultValue( uid=sequence['hosting_subscription_uid'])
default_destination_decision_uid=person.getUid(), self.assertEqual(2, self.portal.portal_catalog.countResults(
validation_state='validated', default_aggregate_uid=sequence['hosting_subscription_uid'],
portal_type="Open Sale Order") portal_type='Open Sale Order Line')[0][0]
open_order_line_list = \ )
open_order.contentValues(portal_type="Open Sale Order Line")
self.assertEquals(1, len(open_order_line_list))
open_order_line = open_order_line_list[0]
hosting_subscription = \
open_order_line.getAggregateValue(portal_type="Hosting Subscription")
applied_rule = \ applied_rule = \
hosting_subscription.getCausalityRelatedValue(portal_type="Applied Rule") hosting_subscription.getCausalityRelatedValue(portal_type="Applied Rule")
self.assertEquals( self.assertEquals(
...@@ -212,22 +207,28 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin): ...@@ -212,22 +207,28 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
Logout Logout
LoginTestVifibCustomer LoginTestVifibCustomer
RequestSoftwareInstanceStart RequestSoftwareInstanceDestroy
Tic Tic
Logout Logout
LoginDefaultUser LoginDefaultUser
CheckComputerPartitionInstanceHostingSalePackingListConfirmed CheckComputerPartitionInstanceCleanupSalePackingListConfirmed
Logout Logout
SlapLoginCurrentComputer SlapLoginCurrentComputer
SoftwareInstanceStarted SoftwareInstanceDestroyed
Tic Tic
SlapLogout SlapLogout
LoginDefaultUser LoginDefaultUser
CheckComputerPartitionInstanceHostingSalePackingListStarted CheckComputerPartitionInstanceCleanupSalePackingListDelivered
CheckComputerPartitionIsFree
CheckOpenOrderLineRemoved
Logout Logout
LoginERP5TypeTestCase LoginERP5TypeTestCase
Tic # in order to call update simulation alarm of open order
Tic
CheckThreeTopLevelSimulationMovement
CheckSiteConsistency CheckSiteConsistency
Logout Logout
""" """
......
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