[Checkins] SVN: z3ext.controlpanel/trunk/s update tests

Nikolay Kim fafhrd91 at gmail.com
Wed May 13 11:02:14 EDT 2009


Log message for revision 99892:
  update tests

Changed:
  U   z3ext.controlpanel/trunk/setup.py
  U   z3ext.controlpanel/trunk/src/z3ext/controlpanel/site.txt

-=-
Modified: z3ext.controlpanel/trunk/setup.py
===================================================================
--- z3ext.controlpanel/trunk/setup.py	2009-05-13 15:00:42 UTC (rev 99891)
+++ z3ext.controlpanel/trunk/setup.py	2009-05-13 15:02:13 UTC (rev 99892)
@@ -85,6 +85,7 @@
                                   'zope.testing',
                                   'zope.testbrowser',
 				  'z3ext.autoinclude',
+				  'z3ext.security',
                                   ]),
       include_package_data = True,
       zip_safe = False

Modified: z3ext.controlpanel/trunk/src/z3ext/controlpanel/site.txt
===================================================================
--- z3ext.controlpanel/trunk/src/z3ext/controlpanel/site.txt	2009-05-13 15:00:42 UTC (rev 99891)
+++ z3ext.controlpanel/trunk/src/z3ext/controlpanel/site.txt	2009-05-13 15:02:13 UTC (rev 99892)
@@ -3,6 +3,7 @@
 ==============
 
   >>> from zope import component, interface
+  >>> from zope.proxy import removeAllProxies
   >>> from zope.app.folder.folder import Folder
   >>> from zope.app.component.site import LocalSiteManager
   >>> from zope.component.eventtesting import getEvents, clearEvents
@@ -49,8 +50,12 @@
 
   >>> newsite = root['subfolder']['site']
   >>> newsm = newsite.getSiteManager()
+  >>> configlet = newsm.getUtility(IConfiglet)
 
-  >>> newsm.getUtility(IMyUtility, name='my') is myutility
+  newsm.getUtility(IMyUtility, name='my') is myutility
+  False
+
+  newsm.getUtility(IMyUtility, name='my') is configlet.data['myutility']
   True
 
 getEvents()



More information about the Checkins mailing list