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

update to follow changes in data, one empty applied is now created


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28420 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bd57a1de
......@@ -1315,9 +1315,11 @@ class TestTaxLineOrderSimulation(AccountingBuildTestCase):
self.assertEquals('solved', related_invoice.getCausalityState())
# Of course, this invoice does not generate simulation again
self.assertEquals([], related_invoice.getCausalityRelatedValueList(
portal_type='Applied Rule'))
# Of course, this invoice does not generate simulation again. An applied
# rule is created, but it is empty.
related_applied_rule = related_invoice.getCausalityRelatedValue(
portal_type='Applied Rule')
self.assertEquals(0, len(related_applied_rule.objectValues()))
def test_tax_line_build_accounting(self):
base_1 = self.base_amount.newContent(
......@@ -1397,10 +1399,12 @@ class TestTaxLineOrderSimulation(AccountingBuildTestCase):
income_line.getDestinationValue())
self.assertEquals(30, income_line.getSourceCredit())
# Of course, this invoice does not generate simulation again
self.assertEquals([], related_invoice.getCausalityRelatedValueList(
portal_type='Applied Rule'))
# Of course, this invoice does not generate simulation again. An applied
# rule is created, but it is empty.
related_applied_rule = related_invoice.getCausalityRelatedValue(
portal_type='Applied Rule')
self.assertEquals(0, len(related_applied_rule.objectValues()))
# and there's no other invoices
self.assertEquals(1, len(self.portal.accounting_module.contentValues()))
......
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