From 918f67fb8391e4f9ac6b8cfc15a895160d7d59d7 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Wed, 22 Jun 2005 12:56:08 +0000
Subject: [PATCH] added the test with almost no tic

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3310 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/tests/testOrder.py | 68 +++++++++++++++++++--------------
 1 file changed, 39 insertions(+), 29 deletions(-)

diff --git a/product/ERP5/tests/testOrder.py b/product/ERP5/tests/testOrder.py
index e0a28c2f52..2547e0f6be 100755
--- a/product/ERP5/tests/testOrder.py
+++ b/product/ERP5/tests/testOrder.py
@@ -1578,35 +1578,6 @@ class TestOrder(TestOrderMixin,ERP5TypeTestCase):
                       '
     sequence_list.addSequenceString(sequence_string)
 
-    # XXX Does not work yet
-    # Test to confirm order without doing any tic
-    # Except after creating organisations
-     
-#    sequence_string = '\
-#                      CreateOrganisation1 \
-#                      CreateOrganisation2 \
-#                      Tic \
-#                      CreateOrder \
-#                      SetOrderProfile \
-#                      CreateVariatedResource \
-#                      CreateOrderLine \
-#                      SetOrderLineResource \
-#                      SetOrderLineDefaultValues \
-#                      SetOrderLineFullVCL \
-#                      CompleteOrderLineMatrix \
-#                      CreateNotVariatedResource \
-#                      CreateOrderLine \
-#                      SetOrderLineResource \
-#                      SetOrderLineDefaultValues \
-#                      OrderOrder \
-#                      CheckDeliveryBuilding \
-#                      ConfirmOrder \
-#                      Tic \
-#                      Tic \
-#                      CheckDeliveryBuilding \
-#                      '
-#    sequence_list.addSequenceString(sequence_string)
-
     # Test with a order with 2 lines and the same not variated resource
     sequence_string = '\
                       CreateOrganisation1 \
@@ -1660,6 +1631,45 @@ class TestOrder(TestOrderMixin,ERP5TypeTestCase):
 
     sequence_list.play(self)
 
+  def test_16_deliveryBuilderWithNoTic(self, quiet=0, run=run_all_test):
+    """
+      Test generation of delivery list with
+      only a few tic
+    """
+    if not run: return
+    sequence_list = SequenceList()
+
+    # XXX Does not work yet
+    # Test to confirm order without doing any tic
+    # Except after creating organisations
+     
+    sequence_string = '\
+                      CreateOrganisation1 \
+                      CreateOrganisation2 \
+                      Tic \
+                      CreateOrder \
+                      SetOrderProfile \
+                      CreateVariatedResource \
+                      CreateOrderLine \
+                      SetOrderLineResource \
+                      SetOrderLineDefaultValues \
+                      SetOrderLineFullVCL \
+                      CompleteOrderLineMatrix \
+                      CreateNotVariatedResource \
+                      CreateOrderLine \
+                      SetOrderLineResource \
+                      SetOrderLineDefaultValues \
+                      OrderOrder \
+                      CheckDeliveryBuilding \
+                      ConfirmOrder \
+                      Tic \
+                      Tic \
+                      CheckDeliveryBuilding \
+                      '
+    sequence_list.addSequenceString(sequence_string)
+
+    sequence_list.play(self)
+
 #   def test_16_packingListOrderAcquisition(self, quiet=0, run=run_all_test):
 #     """
 #       Test if packing list get some properties from order.
-- 
2.30.9