Author: jmorliaguet
Date: Wed May 17 23:19:59 2006
New Revision: 3159

Modified:
   cpsskins/branches/paris-sprint-2006/doc/registration.txt
   cpsskins/branches/paris-sprint-2006/ftests/installation.txt

Log:

- test fix



Modified: cpsskins/branches/paris-sprint-2006/doc/registration.txt
==============================================================================
--- cpsskins/branches/paris-sprint-2006/doc/registration.txt    (original)
+++ cpsskins/branches/paris-sprint-2006/doc/registration.txt    Wed May 17 
23:19:59 2006
@@ -5,6 +5,16 @@
 
 This is meant for testing the new Zope3 registration API
 
+We unregister the global theme management folder registered in ZCML:
+
+    >>> from zope.component import getGlobalSiteManager
+    >>> from cpsskins.thememanager import IThemeManagementFolder
+
+    >>> gsm = getGlobalSiteManager()
+    >>> gtmutil = gsm.getUtility(IThemeManagementFolder)
+    >>> gsm.unregisterUtility(gtmutil, IThemeManagementFolder)
+    True
+
 Create a site structure:
 
     >>> from zope.app.folder import Folder
@@ -31,8 +41,6 @@
     >>> from zope.app.container.btree import BTreeContainer
     >>> from zope.interface import Interface, implements
 
-    >>> from cpsskins.thememanager import IThemeManagementFolder
-
     >>> class ThemeManagementFolder(BTreeContainer, PersistentComponents):
     ...     implements(IThemeManagementFolder)
     ...

Modified: cpsskins/branches/paris-sprint-2006/ftests/installation.txt
==============================================================================
--- cpsskins/branches/paris-sprint-2006/ftests/installation.txt (original)
+++ cpsskins/branches/paris-sprint-2006/ftests/installation.txt Wed May 17 
23:19:59 2006
@@ -53,18 +53,12 @@
     >>> 'Themes are currently deactivated.' in browser.contents
     True
 
-    >>> sm.queryUtility(IThemeManagementFolder) is None
-    True
-
 Activate the themes:
 
     >>> browser.getControl('Activate themes').click()
     >>> 'Themes are currently activated.' in browser.contents
     True
 
-    >>> sm.queryUtility(IThemeManagementFolder) is tmutil
-    True
-
 Currently there are no themes:
 
     >>> tmutil.getThemes() == []
@@ -94,9 +88,6 @@
     >>> 'Themes are currently deactivated.' in browser.contents
     True
 
-    >>> sm.queryUtility(IThemeManagementFolder) is None
-    True
-
 Cleanup:
 
     >>> del root[u'site']
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to