[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security/tests - testPermissionRegistry.py:1.1.2.7
Jim Fulton
jim@zope.com
Thu, 13 Dec 2001 17:28:35 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Security/tests
In directory cvs.zope.org:/tmp/cvs-serv22201/tests
Modified Files:
Tag: Zope-3x-branch
testPermissionRegistry.py
Log Message:
changed definePermission signature to match tutorial and require a title
=== Zope3/lib/python/Zope/App/Security/tests/testPermissionRegistry.py 1.1.2.6 => 1.1.2.7 ===
def testPermissionIsAnIPermission(self):
- registry.definePermission('Foo')
+ registry.definePermission('Foo', 'foo title')
permission = registry.getPermission('Foo')
self.assertEqual(verify(IPermission, permission), 1)
def testDefinePermission(self):
- perm = registry.definePermission('Foo')
+ perm = registry.definePermission('Foo', 'foo title')
self.failUnless(verify(IPermission, perm))
self.failUnless(registry.definedPermission('Foo'))
permission = registry.getPermission('Foo')
- self.assertEquals(permission.getTitle(), 'Foo')
+ self.assertEquals(permission.getTitle(), 'foo title')
def testDefinePermissionWithTitle(self):
eq = self.assertEqual