Commit 2fb015b9 authored by Fabien Morin's avatar Fabien Morin

add check of base_contribution_list. The list should be the same that the one...

add check of base_contribution_list. The list should be the same that the one on the corresponding Pay Sheet Model Line


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25127 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 34655658
......@@ -691,6 +691,11 @@ class TestPayroll(TestPayrollMixin):
[self.payroll_service_organisation.getRelativeUrl()],
pay_sheet_line._getCategoryMembershipList('source_section'))
# check the base_contribution has been copied from the pay sheet model
# to the pay sheet line
self.assertEquals(model_line1.getBaseContributionList(),
pay_sheet_line.getBaseContributionList())
elif service == self.labour_id:
cell = pay_sheet_line.getCell(\
'tax_category/'+ self.tax_category_employee_share,
......@@ -700,6 +705,11 @@ class TestPayroll(TestPayrollMixin):
self.assertEquals([],
pay_sheet_line._getCategoryMembershipList('source_section'))
# check the base_contribution has been copied from the pay sheet model
# to the pay sheet line
self.assertEquals(model_line2.getBaseContributionList(),
pay_sheet_line.getBaseContributionList())
else:
self.fail("Unknown service for line %s" % pay_sheet_line)
......@@ -2489,8 +2499,6 @@ class TestPayroll(TestPayrollMixin):
self.assertEquals(employer, line.getDestinationSectionValue())
self.assertEquals(provider, line.getSourceSectionValue())
import unittest
def test_suite():
suite = unittest.TestSuite()
......
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