Commit c166c000 authored by Fabien Morin's avatar Fabien Morin

add a test to check that it's possible to use source_reference and

destination_reference on Supply Line

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32616 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b20f8a26
......@@ -210,6 +210,18 @@ class TestSaleSupply(TestSupplyMixin, ERP5TypeTestCase):
portal_type=self.supply_line_portal_type)
self.assertSameSet([supply_line], supply_line_list)
def test_sourceDestinationReferenceOnSupplyLine(self):
"""
Check that it's possible to set and get a source/destination_reference on
supply_line
"""
supply = self._makeSupply(start_date_range_min=DateTime())
supply_line = self._makeSupplyLine(supply)
supply_line.setSourceReference('my_source_reference')
self.assertEquals(supply_line.getSourceReference(), 'my_source_reference')
supply_line.setDestinationReference('my_destination_reference')
self.assertEquals(supply_line.getSourceReference(), 'my_destination_reference')
class TestPurchaseSupply(TestSaleSupply):
"""
Test Purchase Supplies usage
......
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