Commit 5cd72b31 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Do not define more than one statement per line.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31800 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ff1d92e8
......@@ -228,7 +228,8 @@ class TestERP5BankingAccountingCancellation(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckInitialInventory ' \
......
......@@ -122,7 +122,8 @@ class TestERP5BankingAccountingDate(TestERP5BankingMixin):
self.openAccountingDate(date=self.past_day, site=self.accounting_date_site)
def test_AccountingDate(self, quiet=QUIET, run=RUN_ALL_TEST):
if not run: return
if not run:
return
sequence_list = SequenceList()
sequence_string_1 = 'stepEmptyAccountingDateModule ' \
'Tic ' \
......
......@@ -284,7 +284,8 @@ class TestERP5BankingAvailableInventory(TestERP5BankingCheckPaymentMixin,
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckAccountInitialInventory ' \
......
......@@ -177,7 +177,8 @@ class TestERP5BankingInventory(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckInitialInventory ' \
......
......@@ -736,7 +736,8 @@ class TestERP5BankingCashBalanceRegulation(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialInventory ' \
......
......@@ -703,7 +703,8 @@ class TestERP5BankingCashClassification(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialInventory CheckSource CheckDestination ' \
......
......@@ -498,7 +498,8 @@ class TestERP5BankingCashExchange(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialInventoryGuichet_1 ' \
......
......@@ -403,7 +403,8 @@ class TestERP5BankingInventory(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialInventory ' \
......
......@@ -628,7 +628,8 @@ class TestERP5BankingCashMovement(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialInventory ' \
......
......@@ -330,7 +330,8 @@ class TestERP5BankingCashMovementNewNotEmitted(TestERP5BankingMonetaryReceptionM
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
......
......@@ -540,7 +540,8 @@ class TestERP5BankingCashSorting(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialInventory CheckSource CheckDestination ' \
......
......@@ -449,7 +449,8 @@ class TestERP5BankingCashToCurrencyPurchase(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialInventoryGuichet_Entrante ' \
......
......@@ -410,7 +410,8 @@ class TestERP5BankingCashToCurrencySale(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialInventoryGuichet_Entrante ' \
......
......@@ -449,7 +449,8 @@ class TestERP5BankingCheckDeposit(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string1 = 'Tic CheckObjects Tic CheckInitialInventory ' \
......
......@@ -529,7 +529,8 @@ class TestERP5BankingCheckPayment(TestERP5BankingCheckPaymentMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialInventory ' \
......
......@@ -281,7 +281,8 @@ class TestERP5BankingCheckbookDelivery(TestERP5BankingCheckbookDeliveryMixin,
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialCheckbookInventory ' \
......
......@@ -311,7 +311,8 @@ class TestERP5BankingCheckbookMovement(TestERP5BankingCheckbookVaultTransferMixi
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialCheckbookInventory ' \
......
......@@ -442,7 +442,8 @@ class TestERP5BankingCheckbookReception(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialCheckbookInventory ' \
......
......@@ -371,7 +371,8 @@ class TestERP5BankingCheckbookUsualCashTransfer(TestERP5BankingCheckbookUsualCas
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialCheckbookInventory ' \
......
......@@ -369,7 +369,8 @@ class TestERP5BankingCheckbookVaultTransfer(TestERP5BankingCheckbookVaultTransfe
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialCheckbookInventory ' \
......
......@@ -508,7 +508,8 @@ class TestERP5BankingClassificationSurvey(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialInventory CheckSource CheckDestination ' \
......
......@@ -108,7 +108,8 @@ class TestERP5BankingCounterDate(TestERP5BankingMixin):
"""
Test that opening a counter date when there is a counter date opened fails.
"""
if not run: return
if not run:
return
if not quiet:
message = 'Check open CounterDate twice fails'
ZopeTestCase._print('\n%s ' % message)
......@@ -133,7 +134,8 @@ class TestERP5BankingCounterDate(TestERP5BankingMixin):
"""
Test that opening a counter date on a non-current date fails.
"""
if not run: return
if not run:
return
if not quiet:
message = 'Check open CounterDate on non-current date fails'
ZopeTestCase._print('\n%s ' % message)
......@@ -168,7 +170,8 @@ class TestERP5BankingCounterDate(TestERP5BankingMixin):
- year-scoped
- site-scoped
"""
if not run: return
if not run:
return
if not quiet:
message = 'Check CounterDate reference generator behaviour'
ZopeTestCase._print('\n%s ' % message)
......@@ -209,7 +212,8 @@ class TestERP5BankingCounterDate(TestERP5BankingMixin):
Test that opening a counter date when there is a counter date opened
fails, even when activites are not executed.
"""
if not run: return
if not run:
return
if not quiet:
message = 'Check open CounterDate twice without activities fails'
ZopeTestCase._print('\n%s ' % message)
......
......@@ -495,7 +495,8 @@ class TestERP5BankingCounterRendering(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialInventory CheckSource CheckDestination ' \
......
......@@ -430,7 +430,8 @@ class TestERP5BankingDestructionSurvey(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckSourceInitial CheckDestinationInitial ' \
......
......@@ -356,7 +356,8 @@ class TestERP5BankingForeignCashReception(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic ' \
......
......@@ -262,7 +262,8 @@ class TestERP5BankingInternalMoneyDeposit(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialInventory ' \
......
......@@ -264,7 +264,8 @@ class TestERP5BankingInternalMoneyPayment(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialInventory ' \
......
......@@ -1004,7 +1004,8 @@ class TestERP5BankingMonetaryDestruction(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence for auxiliaiare
......
......@@ -222,7 +222,8 @@ class TestERP5BankingMonetaryIssue(TestERP5BankingMonetaryReceptionMixin):
# get the cash container item from the monetary reception
cash_container_item_list = [x.getObject() for x in self.simulation_tool.getCurrentTrackingList(node=self.reception.getRelativeUrl())]
self.assertEqual(len(cash_container_item_list), 2)
def reference_sort(a, b): return cmp(a.getReference(), b.getReference())
def reference_sort(a, b):
return cmp(a.getReference(), b.getReference())
cash_container_item_list.sort(reference_sort)
# contruct list of dict to create cash container
......@@ -449,7 +450,8 @@ class TestERP5BankingMonetaryIssue(TestERP5BankingMonetaryReceptionMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects CreateMonetaryReception Tic ' \
......
......@@ -550,7 +550,8 @@ class TestERP5BankingMonetaryRecall(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialInventory CheckSource CheckDestination ' \
......
......@@ -362,7 +362,8 @@ class TestERP5BankingMonetaryReception(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialInventory CheckInitialContainerInventory ' \
......
......@@ -458,7 +458,8 @@ class TestERP5BankingMonetarySurvey(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialInventory CheckSource CheckDestination ' \
......
......@@ -320,7 +320,8 @@ class TestERP5BankingMoneyDeposit(TestERP5BankingMoneyDepositMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialInventory ' \
......
......@@ -496,7 +496,8 @@ class TestERP5BankingMoneyDepositRendering(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialInventory CheckSource CheckDestination ' \
......
......@@ -828,7 +828,8 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
# sequence 1 : no payback, mutilated banknotes
......
......@@ -309,7 +309,8 @@ class TestERP5BankingStopPayment( TestERP5BankingCheckbookDeliveryMixin,
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
# Here we will debit the account
......
......@@ -216,7 +216,8 @@ class TestERP5BankingTravelerCheckPurchase(TestERP5BankingCheckbookUsualCashTran
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialCheckbookInventory ' \
......
......@@ -295,7 +295,8 @@ class TestERP5BankingTravelerCheckSale(TestERP5BankingCheckbookUsualCashTransfer
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialCheckbookInventory ' \
......
......@@ -560,7 +560,8 @@ class TestERP5BankingUsualCashRendering(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialInventory CheckSource CheckDestination ' \
......
......@@ -496,7 +496,8 @@ class TestERP5BankingUsualCashTransfer(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialInventory CheckSource CheckDestination ' \
......
......@@ -751,7 +751,8 @@ class TestERP5BankingVaultTransfer(TestERP5BankingMixin):
"""
Define the sequence of step that will be play
"""
if not run: return
if not run:
return
sequence_list = SequenceList()
# define the sequence
sequence_string = 'Tic CheckObjects Tic CheckInitialInventory CheckSource CheckDestination ' \
......
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