[Zope3-checkins] CVS: Zope3/src/zope/app/browser/security/tests - test_permissionwidget.py:1.5

R. Sean Bowman sean.bowman@acm.org
Thu, 6 Feb 2003 01:50:16 -0500


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

Modified Files:
	test_permissionwidget.py 
Log Message:
finished changing service names to use strings defined in
zope/component/servicenames.py, changed the name of
ErrorReportingService to ErrorReports and Resources to ResourceService


=== Zope3/src/zope/app/browser/security/tests/test_permissionwidget.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/browser/security/tests/test_permissionwidget.py:1.4	Tue Jan 21 16:22:01 2003
+++ Zope3/src/zope/app/browser/security/tests/test_permissionwidget.py	Thu Feb  6 01:49:11 2003
@@ -29,13 +29,14 @@
 from zope.app.tests.placelesssetup import PlacelessSetup
 from zope.app.security.registries.permissionregistry import permissionRegistry
 from zope.component import getServiceManager
+from zope.component.servicenames import Permissions
 from zope.app.interfaces.security import IPermissionService
 
 class TestPermissionWidget(PlacelessSetup, TestCase):
 
     def testPermissionWidget(self):
-        defineService("Permissions", IPermissionService)
-        serviceManager.provideService("Permissions", permissionRegistry)
+        defineService(Permissions, IPermissionService)
+        serviceManager.provideService(Permissions, permissionRegistry)
 
         permissionRegistry.definePermission('read', 'Read', 'Read something')
         read_permission = permissionRegistry.getPermission('read')