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

output more info when invoice is divergent


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24952 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c2b505cf
......@@ -1804,7 +1804,8 @@ class TestSaleInvoiceMixin(TestInvoiceMixin,
Test if invoice is solved
"""
invoice = sequence.get('invoice')
self.assertEquals('solved',invoice.getCausalityState())
self.assertEquals('solved', invoice.getCausalityState(),
invoice.getDivergenceList())
def stepCheckInvoiceIsDivergent(self, sequence=None, sequence_list=None,
**kw):
......@@ -1820,7 +1821,8 @@ class TestSaleInvoiceMixin(TestInvoiceMixin,
Test if invoice is not divergent
"""
invoice = sequence.get('invoice')
self.assertFalse(invoice.isDivergent())
if invoice.isDivergent():
self.fail(invoice.getDivergenceList())
def stepSplitAndDeferInvoice(self, sequence=None, sequence_list=None,
**kw):
......
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