[Erp5-report] r34728 kazuhiko - in /erp5/trunk/products: ERP5/tests/ ERP5Legacy/tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Apr 22 19:10:59 CEST 2010


Author: kazuhiko
Date: Thu Apr 22 19:10:56 2010
New Revision: 34728

URL: http://svn.erp5.org?rev=34728&view=rev
Log:
Since r34722, source should be source_administration of the input movement (or its order's source). Same for destination.

Modified:
    erp5/trunk/products/ERP5/tests/testInvoice.py
    erp5/trunk/products/ERP5Legacy/tests/testLegacyInvoice.py

Modified: erp5/trunk/products/ERP5/tests/testInvoice.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testInvoice.py?rev=34728&r1=34727&r2=34728&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testInvoice.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testInvoice.py [utf8] Thu Apr 22 19:10:56 2010
@@ -605,8 +605,10 @@
                      portal_type=self.invoice_portal_type)
     self.assertEquals(len(related_invoice_list), 1)
     invoice = related_invoice_list[0]
-    self.assertEquals(packing_list.getSource(), invoice.getSource())
-    self.assertEquals(packing_list.getDestination(), invoice.getDestination())
+    self.assertEquals(packing_list.getSourceAdministration(),
+                                       invoice.getSource())
+    self.assertEquals(packing_list.getDestinationAdministration(),
+                                       invoice.getDestination())
     self.assertEquals(packing_list.getDestinationSection(), \
                                        invoice.getDestinationSection())
     self.assertEquals(packing_list.getSourceSection(), \

Modified: erp5/trunk/products/ERP5Legacy/tests/testLegacyInvoice.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Legacy/tests/testLegacyInvoice.py?rev=34728&r1=34727&r2=34728&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Legacy/tests/testLegacyInvoice.py [utf8] (original)
+++ erp5/trunk/products/ERP5Legacy/tests/testLegacyInvoice.py [utf8] Thu Apr 22 19:10:56 2010
@@ -1964,8 +1964,10 @@
                      portal_type=self.invoice_portal_type)
     self.assertEquals(len(related_invoice_list), 1)
     invoice = related_invoice_list[0]
-    self.assertEquals(packing_list.getSource(), invoice.getSource())
-    self.assertEquals(packing_list.getDestination(), invoice.getDestination())
+    self.assertEquals(packing_list.getSourceAdministration(),
+                                       invoice.getSource())
+    self.assertEquals(packing_list.getDestinationAdministration(),
+                                       invoice.getDestination())
     self.assertEquals(packing_list.getDestinationSection(), \
                                        invoice.getDestinationSection())
     self.assertEquals(packing_list.getSourceSection(), \




More information about the Erp5-report mailing list