From 9ecc1552ae795289fd84f7ca938dc5a928bdf83d Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Thu, 4 Mar 2010 15:40:33 +0000
Subject: [PATCH] revise for new simulation hierarchy.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33400 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/tests/testERP5Simulation.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/product/ERP5/tests/testERP5Simulation.py b/product/ERP5/tests/testERP5Simulation.py
index 346190f028..03efec02bf 100644
--- a/product/ERP5/tests/testERP5Simulation.py
+++ b/product/ERP5/tests/testERP5Simulation.py
@@ -269,7 +269,7 @@ class TestERP5SimulationMixin(TestInvoiceMixin):
       self.assertEquals(line.getResourceValue(), resource)
       self.assertEquals(line.getQuantity(), self.default_quantity)
       self.assertEquals(line.getCausalityList(),
-                        [x.getOrder() for x in \
+                        [x.getParentValue().getParentValue().getDelivery() for x in \
                          line.getDeliveryRelatedValueList()])
 
   def stepUnifyDestinationWithDecision(self,sequence=None, sequence_list=None):
@@ -405,7 +405,7 @@ class TestERP5SimulationMixin(TestInvoiceMixin):
     self.assertEquals(len(simulation_line_list), 1)
     for simulation_line in simulation_line_list:
       simulation_line.edit(quantity=self.default_quantity-2)
-      simulation_line.getOrderValue().edit(quantity=self.default_quantity-2)
+      simulation_line.getDeliveryValue().edit(quantity=self.default_quantity-2)
 
   def stepCheckSimulationQuantityUpdatedForMergedLine(self,sequence=None, sequence_list=None):
     """
@@ -428,7 +428,7 @@ class TestERP5SimulationMixin(TestInvoiceMixin):
     self.assertEquals(packing_list_line.getQuantity(), self.default_quantity*2)
     self.assertEquals(packing_list_line.getResourceValue(), new_resource)
     simulation_line_list = packing_list_line.getDeliveryRelatedValueList()
-    order_line_list = sum([x.getOrderList() for x in simulation_line_list], [])
+    order_line_list = sum([x.getParentValue().getParentValue().getDeliveryList() for x in simulation_line_list], [])
     self.assertEquals(sorted(packing_list_line.getCausalityList()),
                       sorted(order_line_list))
 
-- 
2.30.9