[Erp5-report] r32616 fabien - /erp5/trunk/products/ERP5/tests/testSupply.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Feb 16 14:30:51 CET 2010


Author: fabien
Date: Tue Feb 16 14:30:50 2010
New Revision: 32616

URL: http://svn.erp5.org?rev=32616&view=rev
Log:
add a test to check that it's possible to use source_reference and
destination_reference on Supply Line

Modified:
    erp5/trunk/products/ERP5/tests/testSupply.py

Modified: erp5/trunk/products/ERP5/tests/testSupply.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testSupply.py?rev=32616&r1=32615&r2=32616&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testSupply.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testSupply.py [utf8] Tue Feb 16 14:30:50 2010
@@ -210,6 +210,18 @@
                                       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




More information about the Erp5-report mailing list