[CMF-checkins]
SVN: CMF/branches/1.6/CMFCalendar/tests/test_Calendar.py
Build site using factory API.
Tres Seaver
tseaver at palladion.com
Fri Nov 18 08:22:02 EST 2005
Log message for revision 40209:
Build site using factory API.
Changed:
U CMF/branches/1.6/CMFCalendar/tests/test_Calendar.py
-=-
Modified: CMF/branches/1.6/CMFCalendar/tests/test_Calendar.py
===================================================================
--- CMF/branches/1.6/CMFCalendar/tests/test_Calendar.py 2005-11-18 13:21:33 UTC (rev 40208)
+++ CMF/branches/1.6/CMFCalendar/tests/test_Calendar.py 2005-11-18 13:22:02 UTC (rev 40209)
@@ -34,6 +34,7 @@
from Products.TemporaryFolder.TemporaryFolder import MountedTemporaryFolder
from Products.Transience.Transience import TransientObjectContainer
from Products.CMFCore.tests.base.testcase import WarningInterceptor
+from Products.CMFDefault.factory import addConfiguredSite
from Testing.makerequest import makerequest
try:
import transaction
@@ -92,9 +93,11 @@
app = self.app = makerequest(Zope2.app())
# Log in as a god :-)
- newSecurityManager( None, UnrestrictedUser('god', 'god', ['Manager'], '') )
+ newSecurityManager(None,
+ UnrestrictedUser('god', 'god', ['Manager'], '') )
- app.manage_addProduct['CMFDefault'].manage_addCMFSite('CalendarTest')
+ #app.manage_addProduct['CMFDefault'].manage_addCMFSite('CalendarTest')
+ addConfiguredSite(app, 'CalendarTest', 'CMFDefault:default')
self.Site = app.CalendarTest
More information about the CMF-checkins
mailing list