Commit 76906334 authored by Sebastien Robin's avatar Sebastien Robin

change the test because of new specifications

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17955 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2bf7b716
...@@ -283,6 +283,15 @@ class TestERP5BankingCheckPaymentMixin: ...@@ -283,6 +283,15 @@ class TestERP5BankingCheckPaymentMixin:
start_date = DateTime().Date(), start_date = DateTime().Date(),
source_total_asset_price = 20000.0) source_total_asset_price = 20000.0)
new_payment._setSource(self.bi_counter.getRelativeUrl()) new_payment._setSource(self.bi_counter.getRelativeUrl())
if will_fail and insuffisient_balance:
message = self.assertWorkflowTransitionFails(new_payment,
'check_payment_workflow','plan_action')
LOG('self.assertWorkflowTransitionFails message',0,message)
if insuffisient_balance:
self.failUnless(message.find('Bank account is not sufficient')>=0)
# We will force it in order to test the next step
new_payment.plan()
else:
self.workflow_tool.doActionFor(new_payment, 'plan_action', self.workflow_tool.doActionFor(new_payment, 'plan_action',
wf_id='check_payment_workflow') wf_id='check_payment_workflow')
self.assertEqual(new_payment.getSimulationState(), 'planned') self.assertEqual(new_payment.getSimulationState(), 'planned')
......
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