[Erp5-report] r10469 - /erp5/trunk/products/ERP5/tests/testAccounting_l10n_fr_m9.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Oct 2 11:45:39 CEST 2006


Author: jerome
Date: Mon Oct  2 11:45:36 2006
New Revision: 10469

URL: http://svn.erp5.org?rev=10469&view=rev
Log:
tests with new portal types names


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

Modified: erp5/trunk/products/ERP5/tests/testAccounting_l10n_fr_m9.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testAccounting_l10n_fr_m9.py?rev=10469&r1=10468&r2=10469&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testAccounting_l10n_fr_m9.py (original)
+++ erp5/trunk/products/ERP5/tests/testAccounting_l10n_fr_m9.py Mon Oct  2 11:45:36 2006
@@ -43,17 +43,17 @@
   """Test Accounting M9 and Invoice Transmission Sheets.
   """
   RUN_ALL_TESTS = 1
-  purchase_invoice_transmission_sheet_portal_type = \
-        'Purchase Invoice Transmission Sheet'
+  invoice_transmission_sheet_portal_type = \
+        'Invoice Transmission Sheet'
 
   def getTitle(self):
     return "ERP5 Accounting l10n M9"
   
-  def getPurchaseInvoiceTransmissionSheetModule(self):
+  def getInvoiceTransmissionSheetModule(self):
     """Returns the module for purchase invoice transmission sheets.
     """
     return getattr( self.portal,
-                    'purchase_invoice_transmission_sheet_module',
+                    'invoice_transmission_sheet_module',
                     None )
   
   def getAccountingModule(self):
@@ -135,8 +135,8 @@
     return invoice
   
   def test_TransmissionSheetModule(self):
-    """Checks the purchase invoice transmission sheet module is installed."""
-    self.assertNotEquals(None, self.getPurchaseInvoiceTransmissionSheetModule())
+    """Checks the invoice transmission sheet module is installed."""
+    self.assertNotEquals(None, self.getInvoiceTransmissionSheetModule())
   
   def test_AccountingPlanInstallation(self):
     """Tests that the accounting plan is well installed."""
@@ -150,9 +150,9 @@
     invoice = self._createPurchaseInvoice(
                             destination_section_value=self.section,
                             source_section_value=self.mirror_section, )
-    transmission_sheet_module = self.getPurchaseInvoiceTransmissionSheetModule()
+    transmission_sheet_module = self.getInvoiceTransmissionSheetModule()
     transmission_sheet = transmission_sheet_module.newContent(
-            portal_type=self.purchase_invoice_transmission_sheet_portal_type)
+            portal_type=self.invoice_transmission_sheet_portal_type)
     self.assertEquals(transmission_sheet.getValidationState(), 'draft')
     # add an invoice to the transamission sheet
     invoice.setAggregateValue(transmission_sheet)
@@ -166,9 +166,9 @@
   def test_TransmissionSheetEmitRefusedIfNoInvoice(self):
     """Transmission sheet cannot be emitted if it doesn't contain any invoice.
     """
-    transmission_sheet_module = self.getPurchaseInvoiceTransmissionSheetModule()
+    transmission_sheet_module = self.getInvoiceTransmissionSheetModule()
     transmission_sheet = transmission_sheet_module.newContent(
-            portal_type=self.purchase_invoice_transmission_sheet_portal_type)
+            portal_type=self.invoice_transmission_sheet_portal_type)
     self.assertEquals(transmission_sheet.getValidationState(), 'draft')
     self.assertRaises(ValidationFailed, self.getWorkflowTool().doActionFor,
                       transmission_sheet, 'emit_action')




More information about the Erp5-report mailing list