Commit 3de42a17 authored by Vincent Pelletier's avatar Vincent Pelletier

Make it easier to debug failures of this assertion by showing generated error message.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29234 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bcf7e23f
...@@ -416,8 +416,8 @@ class TestERP5BankingCashMovement(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -416,8 +416,8 @@ class TestERP5BankingCashMovement(TestERP5BankingMixin, ERP5TypeTestCase):
# check its len is 2 # check its len is 2
self.assertEqual(len(workflow_history), 2) self.assertEqual(len(workflow_history), 2)
# check we get an "Insufficient balance" message in the workflow history because of the invalid line # check we get an "Insufficient balance" message in the workflow history because of the invalid line
msg = workflow_history[-1]['error_message'] msg = '%s' % (workflow_history[-1]['error_message'], )
self.assertTrue('Insufficient balance' in "%s" %(msg,)) self.assertTrue('Insufficient balance' in msg, msg)
def stepDelInvalidLine(self, sequence=None, sequence_list=None, **kwd): def stepDelInvalidLine(self, sequence=None, sequence_list=None, **kwd):
""" """
......
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