[Erp5-report] r20612 - /erp5/trunk/products/ERP5OOo/tests/testIngestion.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Apr 17 15:34:05 CEST 2008


Author: yusei
Date: Thu Apr 17 15:34:04 2008
New Revision: 20612

URL: http://svn.erp5.org?rev=20612&view=rev
Log:
Use portal_contribution_registry instead of content_type_registry

Modified:
    erp5/trunk/products/ERP5OOo/tests/testIngestion.py

Modified: erp5/trunk/products/ERP5OOo/tests/testIngestion.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testIngestion.py?rev=20612&r1=20611&r2=20612&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testIngestion.py (original)
+++ erp5/trunk/products/ERP5OOo/tests/testIngestion.py Thu Apr 17 15:34:04 2008
@@ -995,7 +995,7 @@
     """
     if not run: return
     if not quiet: printAndLog('test_02_FileExtensionRegistry')
-    reg = self.portal.content_type_registry
+    reg = self.portal.portal_contribution_registry
     correct_type_mapping = {
             'doc' : 'Text',
             'txt' : 'Text',
@@ -1018,7 +1018,8 @@
           }
     for type, portal_type in correct_type_mapping.items():
       file_name = 'aaa.' + type
-      self.assertEquals(reg.findTypeName(file_name, None, None), portal_type)
+      self.assertEquals(reg.findPortalTypeName(file_name, None, None),
+                        portal_type)
 
   def test_03_TextDoc(self, quiet=QUIET, run=RUN_ALL_TEST):
     """




More information about the Erp5-report mailing list