[Zope3-checkins] CVS: Zope3/src/zope/app/security/grants/tests - test_annotationrolepermissionmanager.py:1.6
Albertas Agejevas
alga@codeworks.lt
Thu, 13 Mar 2003 13:49:40 -0500
Update of /cvs-repository/Zope3/src/zope/app/security/grants/tests
In directory cvs.zope.org:/tmp/cvs-serv1411/src/zope/app/security/grants/tests
Modified Files:
test_annotationrolepermissionmanager.py
Log Message:
An unexpected raid by the Whitespace Police.
Other than fixes of nonconforming whitespace, just a couple of $Id$
docstrings has been added.
=== Zope3/src/zope/app/security/grants/tests/test_annotationrolepermissionmanager.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/security/grants/tests/test_annotationrolepermissionmanager.py:1.5 Tue Feb 11 21:17:32 2003
+++ Zope3/src/zope/app/security/grants/tests/test_annotationrolepermissionmanager.py Thu Mar 13 13:49:09 2003
@@ -68,27 +68,27 @@
mgr.grantPermissionToRole(self.read,self.peon)
l = list(mgr.getPermissionsForRole(self.manager))
- self.failUnless( (self.read, Allow) in l )
- self.failUnless( (self.write, Allow) in l )
+ self.failUnless((self.read, Allow) in l)
+ self.failUnless((self.write, Allow) in l)
l = list(mgr.getPermissionsForRole(self.peon))
- self.failUnless( [(self.read, Allow)] == l )
+ self.failUnless([(self.read, Allow)] == l)
l = list(mgr.getRolesForPermission(self.read))
- self.failUnless( (self.manager, Allow) in l )
- self.failUnless( (self.peon, Allow) in l )
+ self.failUnless((self.manager, Allow) in l)
+ self.failUnless((self.peon, Allow) in l)
l = list(mgr.getRolesForPermission(self.write))
- self.assertEqual(l, [ (self.manager, Allow) ] )
+ self.assertEqual(l, [(self.manager, Allow)])
mgr.denyPermissionToRole(self.read, self.peon)
l = list(mgr.getPermissionsForRole(self.peon))
- self.assertEqual(l, [(self.read, Deny)] )
+ self.assertEqual(l, [(self.read, Deny)])
mgr.unsetPermissionFromRole(self.read, self.peon)
l = list(mgr.getRolesForPermission(self.read))
- self.assertEqual(l, [ (self.manager, Allow) ] )
+ self.assertEqual(l, [(self.manager, Allow)])
def test_suite():