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

- rely on test runner capabilities being able to control verbosity

 - rely on test runner capabilities of extraction docstrings


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45282 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 00bc69f8
...@@ -31,11 +31,9 @@ import unittest ...@@ -31,11 +31,9 @@ import unittest
import logging import logging
import transaction import transaction
from Testing import ZopeTestCase
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Acquisition import aq_base from Acquisition import aq_base
from OFS.SimpleItem import SimpleItem from OFS.SimpleItem import SimpleItem
from zLOG import LOG
from App.config import getConfiguration from App.config import getConfiguration
from Products.ERP5Type.tests.Sequence import SequenceList from Products.ERP5Type.tests.Sequence import SequenceList
from urllib import pathname2url from urllib import pathname2url
...@@ -71,7 +69,6 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -71,7 +69,6 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
- Upgrade a template - Upgrade a template
""" """
quiet = 1
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
return ('erp5_base', return ('erp5_base',
...@@ -2898,11 +2895,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -2898,11 +2895,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
"""Tests the Title of the Template Tool.""" """Tests the Title of the Template Tool."""
self.assertEquals('Template Tool', self.getTemplateTool().Title()) self.assertEquals('Template Tool', self.getTemplateTool().Title())
def test_01_checkNewSite(self, quiet=quiet): def test_01_checkNewSite(self):
if not quiet: """Test Check New Site"""
message = 'Test Check New Site'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
UseCoreBusinessTemplate \ UseCoreBusinessTemplate \
...@@ -2912,14 +2906,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -2912,14 +2906,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckSkinsLayers \ CheckSkinsLayers \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
# test of portal types # test of portal types
def test_02_BusinessTemplateWithPortalTypes(self, quiet=quiet): def test_02_BusinessTemplateWithPortalTypes(self):
if not quiet: """Test Business Template With Portal Types"""
message = 'Test Business Template With Portal Types'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -2982,13 +2973,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -2982,13 +2973,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckPortalTypeRemoved \ CheckPortalTypeRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_021_BusinessTemplateWithPortalTypesAndWrongValues(self, quiet=quiet): def test_021_BusinessTemplateWithPortalTypesAndWrongValues(self):
if not quiet: """Test Business Template With Portal Types and Bad Values"""
message = 'Test Business Template With Portal Types and Bad Values'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -3005,14 +2993,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3005,14 +2993,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
RemoveAllTrashBins \ RemoveAllTrashBins \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
# test of skins # test of skins
def test_03_BusinessTemplateWithSkins(self, quiet=quiet): def test_03_BusinessTemplateWithSkins(self):
if not quiet: """Test Business Template With Skin Folder"""
message = 'Test Business Template With Skin Folder'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreateSkinFolder \ CreateSkinFolder \
...@@ -3048,14 +3033,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3048,14 +3033,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckSkinFolderRemoved \ CheckSkinFolderRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
# test of workflow # test of workflow
def test_04_BusinessTemplateWithWorkflow(self, quiet=quiet): def test_04_BusinessTemplateWithWorkflow(self):
if not quiet: """Test Business Template With Workflow"""
message = 'Test Business Template With Workflow'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -3093,13 +3075,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3093,13 +3075,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckWorkflowRemoved \ CheckWorkflowRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_041_BusinessTemplateWithWorkflowRemoved(self, quiet=quiet): def test_041_BusinessTemplateWithWorkflowRemoved(self):
if not quiet: """Test Business Template With Remove Of Workflow"""
message = 'Test Business Template With Remove Of Workflow'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -3161,13 +3140,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3161,13 +3140,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
SaveWorkflowChain \ SaveWorkflowChain \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_042_BusinessTemplateWithWorkflowRemoved(self, quiet=quiet): def test_042_BusinessTemplateWithWorkflowRemoved(self):
if not quiet: """Test Business Template With Remove Of Workflow"""
message = 'Test Business Template With Remove Of Workflow'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -3229,13 +3205,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3229,13 +3205,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
SaveWorkflowChain \ SaveWorkflowChain \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_043_BusinessTemplateWithWorkflowChainRemoved(self, quiet=quiet): def test_043_BusinessTemplateWithWorkflowChainRemoved(self):
if not quiet: """Test Business Template With Remove Of Workflow Chain"""
message = 'Test Business Template With Remove Of Workflow Chain'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -3297,14 +3270,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3297,14 +3270,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckWorkflowChainRemoved \ CheckWorkflowChainRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
# test of module # test of module
def test_05_BusinessTemplateWithModule(self, quiet=quiet): def test_05_BusinessTemplateWithModule(self):
if not quiet: """Test Business Template With Module"""
message = 'Test Business Template With Module'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -3348,14 +3318,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3348,14 +3318,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckPortalTypeRemoved \ CheckPortalTypeRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
# test of categories # test of categories
def test_06_BusinessTemplateWithBaseCategory(self, quiet=quiet): def test_06_BusinessTemplateWithBaseCategory(self):
if not quiet: """Test Business Template With Base Category"""
message = 'Test Business Template With Base Category'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreateBaseCategory \ CreateBaseCategory \
...@@ -3406,13 +3373,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3406,13 +3373,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckBaseCategoryRemoved \ CheckBaseCategoryRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_06_BusinessTemplateReInstallWithBaseCategory(self, quiet=quiet): def test_06_BusinessTemplateReInstallWithBaseCategory(self):
if not quiet: """Test Business Template reinstall after removing Base Category"""
message = 'Test Business Template reinstall after removing Base Category'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreateBaseCategory \ CreateBaseCategory \
...@@ -3436,14 +3400,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3436,14 +3400,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckPreinstallReturnSomething \ CheckPreinstallReturnSomething \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
# test of actions # test of actions
def test_07_BusinessTemplateWithOneAction(self, quiet=quiet): def test_07_BusinessTemplateWithOneAction(self):
if not quiet: """Test Business Template With One Action"""
message = 'Test Business Template With One Action'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -3482,13 +3443,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3482,13 +3443,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckPortalTypeRemoved \ CheckPortalTypeRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_07_BusinessTemplateWithEmptyAction(self, quiet=quiet): def test_07_BusinessTemplateWithEmptyAction(self):
if not quiet: """Test Business Template Upgrade With Empty Action"""
message = 'Test Business Template Upgrade With Empty Action'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -3526,13 +3484,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3526,13 +3484,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckPortalTypeRemoved \ CheckPortalTypeRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_08_BusinessTemplateWithTwoActions(self, quiet=quiet): def test_08_BusinessTemplateWithTwoActions(self):
if not quiet: """Test Business Template With Two Actions"""
message = 'Test Business Template With Two Actions'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -3574,13 +3529,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3574,13 +3529,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
RemovePortalType \ RemovePortalType \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_09_BusinessTemplateWithPath(self, quiet=quiet): def test_09_BusinessTemplateWithPath(self):
if not quiet: """Test Business Template With A Simple Path"""
message = 'Test Business Template With A Simple Path'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
# a simple path # a simple path
sequence_string = '\ sequence_string = '\
...@@ -3617,13 +3569,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3617,13 +3569,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckBaseCategoryRemoved \ CheckBaseCategoryRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_091_BusinessTemplateDoNotUnindexObject(self, quiet=quiet): def test_091_BusinessTemplateDoNotUnindexObject(self):
if not quiet: """Test Business Template Do Not Unindex Object At Build"""
message = 'Test Business Template Do Not Unindex Object At Build'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
# a simple path # a simple path
sequence_string = '\ sequence_string = '\
...@@ -3646,13 +3595,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3646,13 +3595,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_10_BusinessTemplateWithPathAndJoker1(self, quiet=quiet): def test_10_BusinessTemplateWithPathAndJoker1(self):
if not quiet: """Test Business Template With Path And Joker *"""
message = 'Test Business Template With Path And Joker *'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
# path with subobjects # path with subobjects
sequence_string = '\ sequence_string = '\
...@@ -3691,13 +3637,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3691,13 +3637,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
RemoveBaseCategory \ RemoveBaseCategory \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_101_BusinessTemplateUninstallWithPathAndJoker1Removed(self, quiet=quiet): def test_101_BusinessTemplateUninstallWithPathAndJoker1Removed(self):
if not quiet: """Test Business Template Uninstall With Path And Joker * Removed"""
message = 'Test Business Template Uninstall With Path And Joker * Removed'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
# path with subobjects # path with subobjects
sequence_string = '\ sequence_string = '\
...@@ -3737,13 +3680,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3737,13 +3680,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
RemoveBaseCategory \ RemoveBaseCategory \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_11_BusinessTemplateWithPathAndJoker2(self, quiet=quiet): def test_11_BusinessTemplateWithPathAndJoker2(self):
if not quiet: """Test Business Template With Path And Joker **"""
message = 'Test Business Template With Path And Joker **'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
# path with subobject recursively # path with subobject recursively
sequence_string = '\ sequence_string = '\
...@@ -3784,10 +3724,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3784,10 +3724,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
RemoveBaseCategory \ RemoveBaseCategory \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_111_BusinessTemplateWithContentTypeRegistry(self):
"""Test Business Template With Content Type Registry As Path
def test_111_BusinessTemplateWithContentTypeRegistry(self, quiet=quiet):
"""
Test if content_type_registry is propertly exported and installed within Test if content_type_registry is propertly exported and installed within
business template (as path). business template (as path).
This test shows that there is a slight issue - when the bt that brought This test shows that there is a slight issue - when the bt that brought
...@@ -3796,10 +3737,6 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3796,10 +3737,6 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
The sequence string does not do CheckNoTrashBin after installing The sequence string does not do CheckNoTrashBin after installing
template because there is the old registry (I think) and it is ok. template because there is the old registry (I think) and it is ok.
""" """
if not quiet:
message = 'Test Business Template With Content Type Registry As Path'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
# a simple path # a simple path
sequence_string = '\ sequence_string = '\
...@@ -3836,13 +3773,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3836,13 +3773,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckNotInstalledInstallationState \ CheckNotInstalledInstallationState \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_12_BusinessTemplateWithCatalogMethod(self, quiet=quiet): def test_12_BusinessTemplateWithCatalogMethod(self):
if not quiet: """Test Business Template With Catalog Method, Related Key, Result Key And Table"""
message = 'Test Business Template With Catalog Method, Related Key, Result Key And Table'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreateCatalogMethod \ CreateCatalogMethod \
...@@ -3885,13 +3819,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3885,13 +3819,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckCatalogMethodRemoved \ CheckCatalogMethodRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_121_BusinessTemplateWithUpdateOfCatalogMethod(self, quiet=quiet): def test_121_BusinessTemplateWithUpdateOfCatalogMethod(self):
if not quiet: """Test Business Template Update With Catalog Method, Related Key, Result Key And Table"""
message = 'Test Business Template Update With Catalog Method, Related Key, Result Key And Table'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreateCatalogMethod \ CreateCatalogMethod \
...@@ -3966,13 +3897,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3966,13 +3897,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckCatalogMethodRemoved \ CheckCatalogMethodRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_122_BusinessTemplateWithRemoveCatalogMethod(self, quiet=quiet): def test_122_BusinessTemplateWithRemoveCatalogMethod(self):
if not quiet: """Test Business Template remove a Catalog Method"""
message = 'Test Business Template remove a Catalog Method'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreateCatalogMethod \ CreateCatalogMethod \
...@@ -4016,13 +3944,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -4016,13 +3944,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckCatalogMethodRemoved \ CheckCatalogMethodRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_13_BusinessTemplateWithRole(self, quiet=quiet): def test_13_BusinessTemplateWithRole(self):
if not quiet: """Test Business Template With Role"""
message = 'Test Business Template With Role'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreateRole \ CreateRole \
...@@ -4058,13 +3983,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -4058,13 +3983,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckRoleRemoved \ CheckRoleRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_14_BusinessTemplateWithLocalRoles(self, quiet=quiet): def test_14_BusinessTemplateWithLocalRoles(self):
if not quiet: """Test Business Template With Local Roles"""
message = 'Test Business Template With Local Roles'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -4108,13 +4030,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -4108,13 +4030,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
RemovePortalType \ RemovePortalType \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_15_BusinessTemplateWithPropertySheet(self, quiet=quiet): def test_15_BusinessTemplateWithPropertySheet(self):
if not quiet: """Test Business Template With Property Sheet"""
message = 'Test Business Template With Property Sheet'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePropertySheet \ CreatePropertySheet \
...@@ -4150,14 +4069,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -4150,14 +4069,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckPropertySheetRemoved \ CheckPropertySheetRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_151_BusinessTemplateWithPropertySheetMigration(self, quiet=quiet):
if not quiet:
message = 'Test Business Template With Property Sheet Migration'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
def test_151_BusinessTemplateWithPropertySheetMigration(self):
"""Test Business Template With Property Sheet Migration"""
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePropertySheet \ CreatePropertySheet \
...@@ -4194,13 +4109,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -4194,13 +4109,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckMigratedPropertySheetRemoved \ CheckMigratedPropertySheetRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_155_BusinessTemplateUpdateWithPropertySheet(self, quiet=quiet): def test_155_BusinessTemplateUpdateWithPropertySheet(self):
if not quiet: """Test Business Template With Property Sheet"""
message = 'Test Business Template With Property Sheet'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePropertySheet \ CreatePropertySheet \
...@@ -4261,13 +4173,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -4261,13 +4173,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckWorkflowChainRemoved \ CheckWorkflowChainRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_156_BusinessTemplateWithConstraint(self, quiet=quiet): def test_156_BusinessTemplateWithConstraint(self):
if not quiet: """Test Business Template With Constraint"""
message = 'Test Business Template With Constraint'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreateConstraint \ CreateConstraint \
...@@ -4303,13 +4212,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -4303,13 +4212,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckConstraintRemoved \ CheckConstraintRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_157_BusinessTemplateUpdateWithConstraint(self, quiet=quiet): def test_157_BusinessTemplateUpdateWithConstraint(self):
if not quiet: """Test Business Template With Constraint"""
message = 'Test Business Template With Constraint'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreateConstraint \ CreateConstraint \
...@@ -4370,13 +4276,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -4370,13 +4276,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckWorkflowChainRemoved \ CheckWorkflowChainRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_16_BusinessTemplateWithAllItems(self, quiet=quiet): def test_16_BusinessTemplateWithAllItems(self):
if not quiet: """Test Business Template With All Items"""
message = 'Test Business Template With All Items'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -4467,13 +4370,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -4467,13 +4370,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckSkinsLayers \ CheckSkinsLayers \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_17_SubobjectsAfterUpgradOfBusinessTemplate(self, quiet=quiet): def test_17_SubobjectsAfterUpgradOfBusinessTemplate(self):
if not quiet: """Test Upgrade Of Business Template Keeps Subobjects"""
message = 'Test Upgrade Of Business Template Keeps Subobjects'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
# check if subobjects in module and catalog still remains after an update # check if subobjects in module and catalog still remains after an update
sequence_string = '\ sequence_string = '\
...@@ -4544,13 +4444,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -4544,13 +4444,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckSkinsLayers \ CheckSkinsLayers \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_18_upgradeBusinessTemplateWithAllItems(self, quiet=quiet): def test_18_upgradeBusinessTemplateWithAllItems(self):
if not quiet: """Test Upgrade Business Template With All Items"""
message = 'Test Upgrade Business Template With All Items'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
# by default action is backup, so everything will be replace # by default action is backup, so everything will be replace
sequence_string = '\ sequence_string = '\
...@@ -4668,14 +4565,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -4668,14 +4565,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
RemoveAllTrashBins \ RemoveAllTrashBins \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
# test specific to erp5_core # test specific to erp5_core
def test_19_checkUpdateBusinessTemplateWorkflow(self, quiet=quiet): def test_19_checkUpdateBusinessTemplateWorkflow(self):
if not quiet: """Test Check Update of Business Template Workflows is working"""
message = 'Test Check Update of Business Template Workflows is working'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -4753,13 +4647,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -4753,13 +4647,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
RemovePropertySheetFromZODB \ RemovePropertySheetFromZODB \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_20_checkUpdateTool(self, quiet=quiet): def test_20_checkUpdateTool(self):
if not quiet: """Test Check Update of Tool is working"""
message = 'Test Check Update of Tool is working'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -4849,13 +4740,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -4849,13 +4740,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
RemovePropertySheetFromZODB \ RemovePropertySheetFromZODB \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_21_CategoryIncludeSubobjects(self, quiet=quiet): def test_21_CategoryIncludeSubobjects(self):
if not quiet: """Test Category includes subobjects"""
message = 'Test Category includes subobjects'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreateBaseCategory \ CreateBaseCategory \
...@@ -4870,14 +4758,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -4870,14 +4758,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckSubobjectsNotIncluded \ CheckSubobjectsNotIncluded \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
# test of portal types # test of portal types
def test_22_RevisionNumberIsIncremented(self, quiet=quiet): def test_22_RevisionNumberIsIncremented(self):
if not quiet: """Test is revision number is incremented with the bt is built"""
message = 'Test is revision number is incremented with the bt is built'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -4893,13 +4778,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -4893,13 +4778,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
RemovePortalType \ RemovePortalType \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_23_CheckNoDependencies(self, quiet=quiet): def test_23_CheckNoDependencies(self):
if not quiet: """Test if a new Business Template has no dependencies"""
message = 'Test if a new Business Template has no dependencies'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -4910,13 +4792,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -4910,13 +4792,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
RemovePortalType \ RemovePortalType \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_24_CheckMissingDependency(self, quiet=quiet): def test_24_CheckMissingDependency(self):
if not quiet: """Test if a exception is raised when a dependency is missing"""
message = 'Test if a exception is raised when a dependency is missing'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -4928,13 +4807,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -4928,13 +4807,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
RemovePortalType \ RemovePortalType \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_25_CheckNoMissingDependency(self, quiet=quiet): def test_25_CheckNoMissingDependency(self):
if not quiet: """Test if the dependency problem is fixed when the dependency is installed"""
message = 'Test if the dependency problem is fixed when the dependency is installed'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -4965,14 +4841,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -4965,14 +4841,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
RemoveBusinessTemplate \ RemoveBusinessTemplate \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
# test of skins # test of skins
def test_26_ImportWithDoubleSlashes(self, quiet=quiet): def test_26_ImportWithDoubleSlashes(self):
if not quiet: """Test Importing Business Template With Double Slashes"""
message = 'Test Importing Business Template With Double Slashes'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreateSkinFolder \ CreateSkinFolder \
...@@ -5009,13 +4882,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -5009,13 +4882,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckSkinFolderRemoved \ CheckSkinFolderRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_27_CheckInstallWithBackup(self, quiet=quiet): def test_27_CheckInstallWithBackup(self):
if not quiet: """Test if backup works during installation of a bt with subfolder in skin folder"""
message = 'Test if backup works during installation of a bt with subfolder in skin folder'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -5038,13 +4908,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -5038,13 +4908,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
RemoveBusinessTemplate \ RemoveBusinessTemplate \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_28_CheckBuildWithUnexistingPath(self, quiet=quiet): def test_28_CheckBuildWithUnexistingPath(self):
if not quiet: """Test if build fails when one of the paths does not exist"""
message = 'Test if build fails when one of the paths does not exist'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -5056,13 +4923,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -5056,13 +4923,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
RemovePortalType \ RemovePortalType \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_29_CheckUninstallRemovedSkinFolder(self, quiet=quiet): def test_29_CheckUninstallRemovedSkinFolder(self):
if not quiet: """Test if uninstall works even when the skin folder has already been removed from the site"""
message = 'Test if uninstall works even when the skin folder has already been removed from the site'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -5083,14 +4947,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -5083,14 +4947,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
RemoveBusinessTemplate \ RemoveBusinessTemplate \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_30_CheckInstalledCatalogProperties(self, quiet=quiet): def test_30_CheckInstalledCatalogProperties(self):
if not quiet: """Test if installing some new catalog properties overwrites existing ones"""
message = 'Test if installing some new catalog properties overwrites '\
'existing ones'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreateCatalogMethod \ CreateCatalogMethod \
...@@ -5112,13 +4972,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -5112,13 +4972,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
RemoveCatalogLocalConfiguration \ RemoveCatalogLocalConfiguration \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_31_BusinessTemplateWithCatalogMethod(self, quiet=quiet): def test_31_BusinessTemplateWithCatalogMethod(self):
if not quiet: """Test that we keep local changes if we specify a list of objects to update"""
message = 'Test that we keep local changes if we specify a list of objects to update'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreateCatalogMethod \ CreateCatalogMethod \
...@@ -5154,13 +5011,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -5154,13 +5011,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
RemoveKeysAndTable \ RemoveKeysAndTable \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_32_BusinessTemplateWithDuplicatedPortalTypes(self, quiet=quiet): def test_32_BusinessTemplateWithDuplicatedPortalTypes(self):
if not quiet: """Test Business Template With Duplicated Portal Types"""
message = 'Test Business Template With Duplicated Portal Types'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -5203,7 +5057,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -5203,7 +5057,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
UninstallPreviousBusinessTemplate \ UninstallPreviousBusinessTemplate \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def stepSetSkinFolderRegistredSelections(self, sequence=None, **kw): def stepSetSkinFolderRegistredSelections(self, sequence=None, **kw):
ps = self.getSkinsTool() ps = self.getSkinsTool()
...@@ -5266,11 +5120,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -5266,11 +5120,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
self.assertFalse('erp5_xhtml_style' in layers, layers) self.assertFalse('erp5_xhtml_style' in layers, layers)
self.assertTrue(static_skin_id in layers, layers) self.assertTrue(static_skin_id in layers, layers)
def test_33_BusinessTemplateWithNewSkinSelection(self, quiet=quiet): def test_33_BusinessTemplateWithNewSkinSelection(self):
if not quiet: """Test Business Template With New Skin Selection"""
message = 'Test Business Template With New Skin Selection'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreateSkinFolder \ CreateSkinFolder \
...@@ -5291,13 +5142,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -5291,13 +5142,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckSkinSelectionAdded \ CheckSkinSelectionAdded \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_34_UpgradeForm(self, quiet=quiet): def test_34_UpgradeForm(self):
if not quiet: """Test Upgrade Form"""
message = 'Test Upgrade Form'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreateSkinFolder \ CreateSkinFolder \
...@@ -5334,13 +5182,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -5334,13 +5182,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckFormGroups \ CheckFormGroups \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_34_UpgradeFormAttribute(self, quiet=quiet): def test_34_UpgradeFormAttribute(self):
if not quiet: """Test Upgrade Form"""
message = 'Test Upgrade Form'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreateSkinFolder \ CreateSkinFolder \
...@@ -5375,20 +5220,17 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -5375,20 +5220,17 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckFormGroups \ CheckFormGroups \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_34_RemoveForm(self):
"""Test Upgrade Form
def test_34_RemoveForm(self, quiet=quiet):
"""
- Add a form into the skin folders of erp5_geek and erp5_nerd - Add a form into the skin folders of erp5_geek and erp5_nerd
- Remove the form from erp5_geek - Remove the form from erp5_geek
- Check that the form is removed from erp5_geek - Check that the form is removed from erp5_geek
- Check that the form is not removed from erp5_nerd - Check that the form is not removed from erp5_nerd
- Check that the title field is not removed from erp5_nerd - Check that the title field is not removed from erp5_nerd
""" """
if not quiet:
message = 'Test Upgrade Form'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreateSkinFolder \ CreateSkinFolder \
...@@ -5432,7 +5274,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -5432,7 +5274,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckTrashBin \ CheckTrashBin \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_getInstalledBusinessTemplate(self): def test_getInstalledBusinessTemplate(self):
self.assertNotEquals(None, self.getPortal()\ self.assertNotEquals(None, self.getPortal()\
...@@ -5739,11 +5581,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -5739,11 +5581,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
if present: if present:
self.assertEqual(0, len(wf_ids)) self.assertEqual(0, len(wf_ids))
def test_34_RemovePartialWorkflowChain(self, quiet=quiet): def test_34_RemovePartialWorkflowChain(self):
if not quiet: """Test Remove Chain"""
message = 'Test Remove Chain'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -5799,7 +5638,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -5799,7 +5638,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckWorkflowChainExists \ CheckWorkflowChainExists \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def stepCopyBusinessTemplate(self, sequence=None, **kw): def stepCopyBusinessTemplate(self, sequence=None, **kw):
""" """
...@@ -5837,11 +5676,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -5837,11 +5676,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
new_value.append(workflow_chain) new_value.append(workflow_chain)
bt.edit(template_portal_type_workflow_chain_list=new_value) bt.edit(template_portal_type_workflow_chain_list=new_value)
def test_35_UpdatePartialWorkflowChain(self, quiet=quiet): def test_35_UpdatePartialWorkflowChain(self):
if not quiet: """Test Update Workflow Chain"""
message = 'Test Update Workflow Chain'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -5907,7 +5743,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -5907,7 +5743,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckWorkflowChainExists \ CheckWorkflowChainExists \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_35a_UpdatePartialWorkflowChainWithRemove(self): def test_35a_UpdatePartialWorkflowChainWithRemove(self):
"""Check that chains are correctly removed during update """Check that chains are correctly removed during update
...@@ -6028,11 +5864,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6028,11 +5864,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
self.assertEqual(['group','site'], role.getRoleBaseCategoryList()) self.assertEqual(['group','site'], role.getRoleBaseCategoryList())
self.assertEqual('Base Category Script', role.getRoleBaseCategoryScriptId()) self.assertEqual('Base Category Script', role.getRoleBaseCategoryScriptId())
def test_36_CheckPortalTypeRoles(self, quiet=quiet): def test_36_CheckPortalTypeRoles(self):
if not quiet: """Test Portal Type Roles"""
message = 'Test Portal Type Roles'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreatePortalType \ CreatePortalType \
...@@ -6069,7 +5902,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6069,7 +5902,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckPortalTypeRemoved \ CheckPortalTypeRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def stepModifyPortalType(self, sequence=None, **kw): def stepModifyPortalType(self, sequence=None, **kw):
""" """
...@@ -6097,11 +5930,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6097,11 +5930,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
object_type = pt._getOb(object_id, None) object_type = pt._getOb(object_id, None)
self.failUnless(object_type.title.startswith('Modified ')) self.failUnless(object_type.title.startswith('Modified '))
def test_37_UpdatePortalType(self, quiet=quiet): def test_37_UpdatePortalType(self):
if not quiet: """Test Update Portal Type"""
message = 'Test Update Portal Type'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
...@@ -6150,7 +5980,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6150,7 +5980,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckPortalTypeRoleExists \ CheckPortalTypeRoleExists \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def stepCreateFakeZODBScript(self, sequence=None, **kw): def stepCreateFakeZODBScript(self, sequence=None, **kw):
"""Create a Script inside portal_skins """Create a Script inside portal_skins
...@@ -6184,11 +6014,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6184,11 +6014,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
folder = self.portal.portal_skins[skin_folder_id] folder = self.portal.portal_skins[skin_folder_id]
self.assertTrue(python_script_id not in folder.objectIds()) self.assertTrue(python_script_id not in folder.objectIds())
def test_38_CheckReinstallation(self, quiet=quiet): def test_38_CheckReinstallation(self):
if not quiet: """Test Reinstallation"""
message = 'Test Reinstallation'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
...@@ -6218,7 +6045,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6218,7 +6045,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckFakeScriptIsDeleted \ CheckFakeScriptIsDeleted \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def stepSetOldSitePropertyValue(self, sequence=None, **kw): def stepSetOldSitePropertyValue(self, sequence=None, **kw):
"""Set the old value to a site property.""" """Set the old value to a site property."""
...@@ -6336,11 +6163,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6336,11 +6163,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
skin_folder = self.portal.portal_skins[skin_folder_id] skin_folder = self.portal.portal_skins[skin_folder_id]
skin_folder.manage_addProperty('business_template_skin_layer_priority', 9999.0, 'float') skin_folder.manage_addProperty('business_template_skin_layer_priority', 9999.0, 'float')
def test_39_CheckSiteProperties(self, quiet=quiet): def test_39_CheckSiteProperties(self):
if not quiet: """Test Site Properties"""
message = 'Test Site Properties'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
SetOldSitePropertyValue \ SetOldSitePropertyValue \
...@@ -6377,12 +6201,12 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6377,12 +6201,12 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckSitePropertyRemoved \ CheckSitePropertyRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
# test of uid # test of uid
def test_40_BusinessTemplateUidOfCategoriesUnchanged(self, quiet=quiet): def test_40_BusinessTemplateUidOfCategoriesUnchanged(self):
""" """Test that the uids of categories are unchanged during their reinstall
Test that the uids of categories are unchanged during their reinstall
Add sub categories with the title 'toto' and save their uid in a dict Add sub categories with the title 'toto' and save their uid in a dict
Create business template with the sub categories in path_template_list Create business template with the sub categories in path_template_list
The sub categories title are changed in 'foo' The sub categories title are changed in 'foo'
...@@ -6390,10 +6214,6 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6390,10 +6214,6 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
Check the old sub categories with' toto' as title Check the old sub categories with' toto' as title
And check if the uid of sub categories is unchanged And check if the uid of sub categories is unchanged
""" """
if not quiet:
message = 'Test that the uids of categories are unchanged during their reinstall'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreateBaseCategory \ CreateBaseCategory \
...@@ -6422,13 +6242,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6422,13 +6242,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
UninstallBusinessTemplate \ UninstallBusinessTemplate \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_158_BusinessTemplateSkinSelectionRemove(self, quiet=quiet): def test_158_BusinessTemplateSkinSelectionRemove(self):
if not quiet: """Test Business Template Uninstall With Skin Selection"""
message = 'Test Business Template Uninstall With Skin Selection'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = 'CreateSkinFolder \ sequence_string = 'CreateSkinFolder \
SetSkinFolderRegistredSelections \ SetSkinFolderRegistredSelections \
...@@ -6448,13 +6265,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6448,13 +6265,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckSkinSelectionRemoved \ CheckSkinSelectionRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_158_BusinessTemplateSkinSelectionRemoveOnlyIfUnused(self, quiet=quiet): def test_158_BusinessTemplateSkinSelectionRemoveOnlyIfUnused(self):
if not quiet: """Test Business Template Uninstall With an used Skin Selection"""
message = 'Test Business Template Uninstall With an used Skin Selection'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = 'CreateSkinFolder \ sequence_string = 'CreateSkinFolder \
CreateStaticSkinFolder \ CreateStaticSkinFolder \
...@@ -6477,13 +6291,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6477,13 +6291,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckSkinSelectionNotRemoved \ CheckSkinSelectionNotRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_159_BusinessTemplateNotRegisterSkin(self, quiet=quiet): def test_159_BusinessTemplateNotRegisterSkin(self):
if not quiet: """Test Business Template will not register existing Skin"""
message = 'Test Business Template will not register existing Skin'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = 'CreateSkinFolder \ sequence_string = 'CreateSkinFolder \
SetSkinFolderRegistredSelections \ SetSkinFolderRegistredSelections \
...@@ -6502,13 +6313,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6502,13 +6313,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckSkinSelectionRemoved \ CheckSkinSelectionRemoved \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_160_BusinessTemplateChangeOnlySelectedSkin(self, quiet=quiet): def test_160_BusinessTemplateChangeOnlySelectedSkin(self):
if not quiet: """Test Business Template will change only selected skins"""
message = 'Test Business Template will change only selected skins'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = 'CreateSkinFolder \ sequence_string = 'CreateSkinFolder \
CreateNewBusinessTemplate \ CreateNewBusinessTemplate \
...@@ -6525,13 +6333,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6525,13 +6333,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckUserSelectedSkinToBeChanged \ CheckUserSelectedSkinToBeChanged \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_161_BusinessTemplateCheckSkinPriorityOrderingEnabled(self, quiet=quiet): def test_161_BusinessTemplateCheckSkinPriorityOrderingEnabled(self):
if not quiet: """Test Business Template will reorder skins path in Skin"""
message = 'Test Business Template will reorder skins path in Skin'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = 'CreateSkinFolder \ sequence_string = 'CreateSkinFolder \
SetBusinessTemplateSkinFolderPriority \ SetBusinessTemplateSkinFolderPriority \
...@@ -6549,13 +6354,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6549,13 +6354,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckSkinFolderPriorityOn \ CheckSkinFolderPriorityOn \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_162_BusinessTemplateCheckSkinPriorityOrderingDisabled(self, quiet=quiet): def test_162_BusinessTemplateCheckSkinPriorityOrderingDisabled(self):
if not quiet: """Test Business Template will not reorder skins path in Skin"""
message = 'Test Business Template will not reorder skins path in Skin'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = 'CreateSkinFolder \ sequence_string = 'CreateSkinFolder \
SetBusinessTemplateSkinFolderPriority \ SetBusinessTemplateSkinFolderPriority \
...@@ -6574,7 +6376,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6574,7 +6376,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckSkinFolderPriorityOff \ CheckSkinFolderPriorityOff \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def stepModifySkinFolder(self, sequence=None, **kw): def stepModifySkinFolder(self, sequence=None, **kw):
""" """
...@@ -6608,12 +6410,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6608,12 +6410,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
self.assertEquals( self.assertEquals(
99, skin_folder.getProperty('business_template_skin_layer_priority')) 99, skin_folder.getProperty('business_template_skin_layer_priority'))
def test_163_UpdateSkinFolderWithRegisteredSkinSelection( def test_163_UpdateSkinFolderWithRegisteredSkinSelection(self):
self, quiet=quiet): """Test Update Skin Folder"""
if not quiet:
message = 'Test Update Skin Folder'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_list.addSequenceString(""" sequence_list.addSequenceString("""
CreateSkinFolder CreateSkinFolder
...@@ -6661,14 +6459,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6661,14 +6459,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
InstallCurrentBusinessTemplate InstallCurrentBusinessTemplate
Tic Tic
""") """)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
@expectedFailure @expectedFailure
def test_164_checkCopyBuild(self, quiet=quiet): def test_164_checkCopyBuild(self):
if not quiet: """Test Check basic copy and build is working"""
message = 'Test Check basic copy and build is working'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_list.addSequenceString(""" sequence_list.addSequenceString("""
UseCoreBusinessTemplate UseCoreBusinessTemplate
...@@ -6677,13 +6472,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6677,13 +6472,10 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckOriginalAndCopyBusinessTemplate CheckOriginalAndCopyBusinessTemplate
Tic Tic
""") """)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_165_checkCopyBuildInstall(self, quiet=quiet): def test_165_checkCopyBuildInstall(self):
if not quiet: """Test Check basic copy, build and installation is working"""
message = 'Test Check basic copy, build and installation is working'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_list.addSequenceString(""" sequence_list.addSequenceString("""
UseCoreBusinessTemplate UseCoreBusinessTemplate
...@@ -6692,7 +6484,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6692,7 +6484,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
InstallCopyCoreBusinessTemplate InstallCopyCoreBusinessTemplate
Tic Tic
""") """)
sequence_list.play(self, quiet=quiet) sequence_list.play(self)
def test_167_InstanceAndRelatedClassDefinedInSameBT(self): def test_167_InstanceAndRelatedClassDefinedInSameBT(self):
# This test does too much since we don't modify objects anymore during # This test does too much since we don't modify objects anymore during
......
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