[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/browser/tests - test_globalbrowsermenuservice.py:1.14.2.1

Godefroid Chapelle cvs-admin at zope.org
Sun Dec 7 04:20:53 EST 2003


Update of /cvs-repository/Zope3/src/zope/app/publisher/browser/tests
In directory cvs.zope.org:/tmp/cvs-serv27637/app/publisher/browser/tests

Modified Files:
      Tag: gotcha-usage-branch
	test_globalbrowsermenuservice.py 
Log Message:
fixed last broken tests



=== Zope3/src/zope/app/publisher/browser/tests/test_globalbrowsermenuservice.py 1.14 => 1.14.2.1 ===
--- Zope3/src/zope/app/publisher/browser/tests/test_globalbrowsermenuservice.py:1.14	Wed Dec  3 00:41:34 2003
+++ Zope3/src/zope/app/publisher/browser/tests/test_globalbrowsermenuservice.py	Sun Dec  7 04:20:51 2003
@@ -28,6 +28,7 @@
 from zope.publisher.browser import TestRequest
 from zope.publisher.interfaces.browser import IBrowserPublisher
 from zope.security.management import newSecurityManager, system_user
+from zope.app import zapi
 
 class I1(Interface): pass
 class I11(I1): pass
@@ -199,6 +200,8 @@
         self.assertEqual(list(menu), [])
 
     def testUsage(self):
+        ps = zapi.getService(None, zapi.servicenames.Presentation)
+        ps.defineUsage(u'objectview')
         r = self.__reg()
         r.menu('test_id', 'test menu', usage=u'objectview')
         self.assertEqual(r.getMenuUsage('test_id'), u'objectview')




More information about the Zope3-Checkins mailing list