[CMF-checkins] CVS: CMF/CMFDefault/tests - test_Discussions.py:1.17
Yvo Schubbe
y.2004_ at wcm-solutions.de
Tue Apr 13 13:39:00 EDT 2004
Update of /cvs-repository/CMF/CMFDefault/tests
In directory cvs.zope.org:/tmp/cvs-serv15111/CMFDefault/tests
Modified Files:
test_Discussions.py
Log Message:
death to DummyFTI: now for each test a new FTI object is created
(made all tests pass using test.py)
=== CMF/CMFDefault/tests/test_Discussions.py 1.16 => 1.17 ===
--- CMF/CMFDefault/tests/test_Discussions.py:1.16 Tue Jan 20 15:11:39 2004
+++ CMF/CMFDefault/tests/test_Discussions.py Tue Apr 13 13:38:59 2004
@@ -15,11 +15,12 @@
from Products.CMFCore.CatalogTool import CatalogTool
from Products.CMFCore.tests.base.dummy import DummyContent
-from Products.CMFCore.tests.base.dummy import DummyFTI
from Products.CMFCore.tests.base.dummy import DummySite
from Products.CMFCore.tests.base.dummy import DummyTool
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
from Products.CMFDefault.DiscussionItem import DiscussionItem
from Products.CMFDefault.DiscussionItem import DiscussionItemContainer
@@ -85,7 +86,8 @@
del test.talkback
del test.allow_discussion
- ttool._setObject( 'Dummy Content', DummyFTI )
+ fti = FTIDATA_DUMMY[0].copy()
+ ttool._setObject( 'Dummy Content', FTI(**fti) )
self.assertRaises(DiscussionNotAllowed, dtool.getDiscussionFor, test)
assert getattr( test, 'talkback', None ) is None
More information about the CMF-checkins
mailing list