From fbb51462eab9cf790c8d51d26563976a64c473cb Mon Sep 17 00:00:00 2001
From: Yusei Tahara <yusei@nexedi.com>
Date: Thu, 17 Apr 2008 13:34:04 +0000
Subject: [PATCH] Use portal_contribution_registry instead of
 content_type_registry

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20612 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5OOo/tests/testIngestion.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/product/ERP5OOo/tests/testIngestion.py b/product/ERP5OOo/tests/testIngestion.py
index 38df5ddf52..c4178f25b9 100644
--- a/product/ERP5OOo/tests/testIngestion.py
+++ b/product/ERP5OOo/tests/testIngestion.py
@@ -995,7 +995,7 @@ class TestIngestion(ERP5TypeTestCase):
     """
     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 @@ class TestIngestion(ERP5TypeTestCase):
           }
     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):
     """
-- 
2.30.9