From 517ed23a789aa63f2ef71a6cde1796fcea793f87 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Tue, 4 Aug 2009 11:23:21 +0000
Subject: [PATCH]  - remove not exact enough docstrings  - add test for
 building invoice in case of local trade model line in order

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

diff --git a/product/ERP5/tests/testTradeModelLine.py b/product/ERP5/tests/testTradeModelLine.py
index f6409bf065..6da42db384 100644
--- a/product/ERP5/tests/testTradeModelLine.py
+++ b/product/ERP5/tests/testTradeModelLine.py
@@ -1757,7 +1757,6 @@ class TestTradeModelLine(TestTradeModelLineMixin):
   """ + AGGREGATED_AMOUNT_SIMULATION_CHECK_SEQUENCE_STRING
 
   def test_TradeModelRuleSimulationExpandOrderSpecialise(self):
-    """Tests tree of simulations from Trade Model Rule"""
     sequence_list = SequenceList()
     sequence_string = self \
         .TRADE_MODEL_RULE_SIMULATION_ORDER_SPECIALISED_SEQUENCE_STRING
@@ -1765,7 +1764,6 @@ class TestTradeModelLine(TestTradeModelLineMixin):
     sequence_list.play(self)
 
   def test_TradeModelRuleSimulationReexpandOrderSpecialise(self):
-    """Tests tree of simulations from Trade Model Rule with reexpanding"""
     sequence_list = SequenceList()
     sequence_string = self \
         .TRADE_MODEL_RULE_SIMULATION_ORDER_SPECIALISED_SEQUENCE_STRING+ """
@@ -1817,7 +1815,6 @@ class TestTradeModelLine(TestTradeModelLineMixin):
     sequence_list.play(self)
 
   def test_TradeModelRuleSimulationBuildInvoice(self):
-    """Check that invoice lines on invoice are correctly set"""
     sequence_list = SequenceList()
     sequence_string = self.TRADE_MODEL_RULE_SIMULATION_SEQUENCE_STRING
     sequence_string += """
@@ -1840,6 +1837,30 @@ class TestTradeModelLine(TestTradeModelLineMixin):
     sequence_list.addSequenceString(sequence_string)
     sequence_list.play(self)
 
+  def test_TradeModelRuleSimulationBuildInvoiceOrderSpecialise(self):
+    sequence_list = SequenceList()
+    sequence_string = self\
+        .TRADE_MODEL_RULE_SIMULATION_ORDER_SPECIALISED_SEQUENCE_STRING
+    sequence_string += """
+              ConfirmOrder
+              Tic
+    """ + self.AGGREGATED_AMOUNT_SIMULATION_CHECK_SEQUENCE_STRING + """
+              GetPackingList
+              PackPackingList
+              Tic
+    """ + self.AGGREGATED_AMOUNT_SIMULATION_CHECK_SEQUENCE_STRING + """
+              StartPackingList
+              StopPackingList
+              DeliverPackingList
+              Tic
+    """ + self.AGGREGATED_AMOUNT_SIMULATION_CHECK_SEQUENCE_STRING + """
+              GetInvoice
+              CheckInvoiceCausalityStateSolved
+              CheckInvoiceNormalMovements
+    """
+    sequence_list.addSequenceString(sequence_string)
+    sequence_list.play(self)
+
   def test_TradeModelRuleSimulationBuildInvoiceNewTradeCondition(self):
     """Check that after changing trade condition invoice is not diverged"""
     sequence_list = SequenceList()
-- 
2.30.9