[CMF-checkins] CVS: CMF/CMFCore/tests - test_PortalFolder.py:1.31

Yvo Schubbe y.2004_ at wcm-solutions.de
Tue Apr 13 13:39:29 EDT 2004


Update of /cvs-repository/CMF/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv15111/CMFCore/tests

Modified Files:
	test_PortalFolder.py 
Log Message:
death to DummyFTI: now for each test a new FTI object is created
(made all tests pass using test.py)


=== CMF/CMFCore/tests/test_PortalFolder.py 1.30 => 1.31 ===
--- CMF/CMFCore/tests/test_PortalFolder.py:1.30	Mon Apr 12 16:56:56 2004
+++ CMF/CMFCore/tests/test_PortalFolder.py	Tue Apr 13 13:38:59 2004
@@ -15,10 +15,10 @@
 from Products.CMFCore.PortalFolder import PortalFolder
 from Products.CMFCore.tests.base.dummy import DummyContent
 from Products.CMFCore.tests.base.dummy import DummyFactory
-from Products.CMFCore.tests.base.dummy import DummyFTI
 from Products.CMFCore.tests.base.security import OmnipotentUser
 from Products.CMFCore.tests.base.testcase import newSecurityManager
 from Products.CMFCore.tests.base.testcase import SecurityTest
+from Products.CMFCore.tests.base.tidata import FTIDATA_DUMMY
 from Products.CMFCore.tests.base.utils import has_path
 from Products.CMFCore.TypesTool import FactoryTypeInformation as FTI
 from Products.CMFCore.TypesTool import TypesTool
@@ -45,7 +45,8 @@
                                   , filter_content_types=0
                                   )
                              )
-        types_tool._setObject( 'Dummy Content', DummyFTI )
+        fti = FTIDATA_DUMMY[0].copy()
+        types_tool._setObject( 'Dummy Content', FTI(**fti) )
 
     def _makeOne( self, id ):
         return PortalFolder( id ).__of__( self.root )
@@ -308,7 +309,8 @@
 
         self.root._setObject( 'portal_types', TypesTool() )
         types_tool = self.root.portal_types
-        types_tool._setObject( 'Dummy Content', DummyFTI )
+        fti = FTIDATA_DUMMY[0].copy()
+        types_tool._setObject( 'Dummy Content', FTI(**fti) )
 
         self.root._setObject( 'portal_catalog', CatalogTool() )
         catalog = self.root.portal_catalog




More information about the CMF-checkins mailing list