From bf4c205277b6977c68ce1a7a36bf787d7a377a9f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Wed, 6 Apr 2011 08:59:40 +0000
Subject: [PATCH]  - custom another workflow chain is being removed from BT5,
 not custom workflow

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

diff --git a/product/ERP5/tests/testBusinessTemplate.py b/product/ERP5/tests/testBusinessTemplate.py
index bb92fc5a38..3c9d10cbee 100644
--- a/product/ERP5/tests/testBusinessTemplate.py
+++ b/product/ERP5/tests/testBusinessTemplate.py
@@ -5966,22 +5966,6 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
     self.assertSameSet(cbt['Geek Object'],
                        ('geek_workflow', 'custom_geek_workflow'))
 
-  def stepCheckAnotherWorkflowChain(self, sequence=None,
-                                     sequence_list=None, **kw):
-    """
-    Check original workflow chain
-    """
-    present = 0
-    pw = self.getWorkflowTool()
-    cbt = pw._chains_by_type
-    if cbt is not None:
-      for id, wf_ids in cbt.items():
-        if id == "Geek Object":
-          present = 1
-    self.assertEqual(present, 1)
-    self.assertSameSet(cbt['Geek Object'],
-                       ('geek_workflow', 'custom_another_workflow'))
-
   def stepCheckOriginalWorkflowChain(self, sequence=None,
                                      sequence_list=None, **kw):
     """
@@ -6192,8 +6176,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
     """Check that chains are correctly removed during update
     
     When previous business template defined that object is associated
-    with workflows A, B, C and that new one says that only A and C
-    associations are required check that after installing only A and C
+    with workflows A, B, C and that new one says that only A and B
+    associations are required check that after installing only A and B
     will be on workflow chains."""
     sequence_list = SequenceList()
     sequence_string = '\
@@ -6273,7 +6257,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
                        UseImportBusinessTemplate \
                        InstallBusinessTemplate \
                        Tic \
-                       CheckAnotherWorkflowChain \
+                       CheckWorkflowChain \
                        CheckWorkflowChainExists \
                        '
     sequence_list.addSequenceString(sequence_string)
-- 
2.30.9