Commit a637a80c authored by Jérome Perrin's avatar Jérome Perrin

remove unused parts


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23558 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7bc5270d
...@@ -45,14 +45,6 @@ QUIET = False ...@@ -45,14 +45,6 @@ QUIET = False
run_all_test = True run_all_test = True
def isSameSet(a, b):
for i in a:
if not(i in b) : return 0
for i in b:
if not(i in a): return 0
if len(a) != len(b) : return 0
return 1
def printAndLog(msg): def printAndLog(msg):
""" """
A utility function to print a message A utility function to print a message
...@@ -62,14 +54,6 @@ def printAndLog(msg): ...@@ -62,14 +54,6 @@ def printAndLog(msg):
msg = str(msg) msg = str(msg)
ZopeTestCase._print('\n ' + msg) ZopeTestCase._print('\n ' + msg)
LOG('Testing... ', 0, msg) LOG('Testing... ', 0, msg)
# Associate transaction portal type to the corresponding line portal type.
transaction_to_line_mapping = {
'Accounting Transaction': 'Accounting Transaction Line',
'Balance Transaction': 'Balance Transaction Line',
'Purchase Invoice Transaction': 'Purchase Invoice Transaction Line',
'Sale Invoice Transaction': 'Sale Invoice Transaction Line',
'Payment Transaction': 'Accounting Transaction Line',
}
class TestERP5CurrencyMixin(AccountingTestCase,ERP5TypeTestCase): class TestERP5CurrencyMixin(AccountingTestCase,ERP5TypeTestCase):
""" """
...@@ -111,48 +95,6 @@ class TestERP5CurrencyMixin(AccountingTestCase,ERP5TypeTestCase): ...@@ -111,48 +95,6 @@ class TestERP5CurrencyMixin(AccountingTestCase,ERP5TypeTestCase):
'erp5_accounting_ui_test' 'erp5_accounting_ui_test'
) )
def enableLightInstall(self):
"""
Return if we should do a light install (1) or not (0)
Light install variable is used at installation of categories in business template
to know if we wrap the category or not, if 1 we don't use and installation is faster
"""
return 1 # here we want a light install for a faster installation
def enableActivityTool(self):
"""
Return if we should create (1) or not (0) an activity tool
This variable is used at the creation of the site to know if we use
the activity tool or not
"""
return 1 # here we want to use the activity tool
def createManagerAndLogin(self):
"""
Create a simple user in user_folder with manager rights.
This user will be used to initialize data in the method afterSetup
"""
self.getUserFolder()._doAddUser('manager', '', ['Manager'], [])
self.login('manager')
def getCurrencyModule(self):
"""
Return the Currency Module
"""
return getattr(self.getPortal(), 'currency_module', None)
def stepTic(self, **kwd):
"""
The is used to simulate the zope_tic_loop script
Each time this method is called, it simulates a call to tic
which invoke activities in the Activity Tool
"""
# execute transaction
get_transaction().commit()
self.tic()
def test_01_CreateCurrencies(self, quiet=0, run=run_all_test): def test_01_CreateCurrencies(self, quiet=0, run=run_all_test):
""" """
Create currencies to be used for transactions Create currencies to be used for transactions
......
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