changeset 4861:c809d085a605

Groups2009: Cosmetic name changes.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Sat, 18 Jul 2009 18:09:28 +0200
parents c030fa388cf5
children c098b029cf60
files MoinMoin/datastruct/backends/_tests/__init__.py MoinMoin/datastruct/backends/_tests/test_lazy_config_groups.py
diffstat 2 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/datastruct/backends/_tests/__init__.py	Sat Jul 18 17:05:18 2009 +0200
+++ b/MoinMoin/datastruct/backends/_tests/__init__.py	Sat Jul 18 18:09:28 2009 +0200
@@ -93,8 +93,8 @@
         acl = security.AccessControlList(request.cfg, acl_rights)
 
         for user in self.expanded_groups['AdminGroup']:
-            for action in ["read", "write", "admin"]:
-                assert acl.may(request, u"Admin1", action), '%s must have %s right because he is member of the AdminGroup' % (user, action)
+            for permission in ["read", "write", "admin"]:
+                assert acl.may(request, u"Admin1", permission), '%s must have %s permission because he is member of the AdminGroup' % (user, permission)
 
     def test_backend_acl_deny(self):
         """
@@ -107,8 +107,8 @@
         acl = security.AccessControlList(request.cfg, acl_rights)
 
         assert u"SomeUser" not in request.groups['AdminGroup']
-        for action in ["read", "write"]:
-            assert not acl.may(request, u"SomeUser", action), 'SomeUser must not have %s right because he is not listed in the AdminGroup' % action
+        for permission in ["read", "write"]:
+            assert not acl.may(request, u"SomeUser", permission), 'SomeUser must not have %s permission because he is not listed in the AdminGroup' % permission
 
         assert u'Admin1' in request.groups['AdminGroup']
         assert not acl.may(request, u"Admin1", "admin")
@@ -120,12 +120,12 @@
         acl = security.AccessControlList(request.cfg, acl_rights)
 
         for member in self.expanded_groups[u'EditorGroup']:
-            for action in ["read", "write", "delete", "admin"]:
-                assert acl.may(request, member, action)
+            for permission in ["read", "write", "delete", "admin"]:
+                assert acl.may(request, member, permission)
 
         assert acl.may(request, u"Someone", "read")
-        for action in ["write", "delete", "admin"]:
-            assert not acl.may(request, u"Someone", action)
+        for permission in ["write", "delete", "admin"]:
+            assert not acl.may(request, u"Someone", permission)
 
     def test_backend_acl_not_existing_group(self):
         request = self.request
--- a/MoinMoin/datastruct/backends/_tests/test_lazy_config_groups.py	Sat Jul 18 17:05:18 2009 +0200
+++ b/MoinMoin/datastruct/backends/_tests/test_lazy_config_groups.py	Sat Jul 18 18:09:28 2009 +0200
@@ -32,7 +32,7 @@
         """
         ConfigLazyGroups can not contain other group members.
 
-        This test does not have sense.
+        This test does not make sense.
         """