changeset 4764:a104935ac05c

Groups2009: typo in MoinMoin.groups._test.test_backend_manager module name
author Dmitrijs Milajevs <dimazest@gmail.com>
date Mon, 25 May 2009 23:04:46 +0200
parents 13a75c5f65c7
children 3ffc3eb7f265
files MoinMoin/groups/_test/test_backend_manager.py MoinMoin/groups/_test/test_backend_namager.py
diffstat 2 files changed, 53 insertions(+), 53 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/groups/_test/test_backend_manager.py	Mon May 25 23:04:46 2009 +0200
@@ -0,0 +1,53 @@
+# -*- coding: iso-8859-1 -*-
+
+"""
+MoinMoin.groups.BackendManager test
+
+@copyright: 2009 MoinMoin:DmitrijsMilajevs
+@license: GPL, see COPYING for details
+"""
+
+from py.test import raises
+
+from MoinMoin.groups import BackendManager
+
+
+class TestBackendManager(object):
+
+    def setup_method(self, method):
+        self.admin_group = frozenset([u'Admin', u'JohnDoe'])
+        self.editor_group = frozenset([u'MainEditor', u'JohnDoe'])
+        self.fruit_group = frozenset([u'Apple', u'Banana'])
+
+        groups = {u'AdminGroup': self.admin_group,
+                  u'EditorGroup': self.editor_group,
+                  u'FruitGroup': self.fruit_group}
+
+        self.group_backend = BackendManager(backend=groups)
+
+    def test_getitem(self):
+        assert self.admin_group == self.group_backend[u'AdminGroup']
+        assert self.fruit_group == self.group_backend[u'FruitGroup']
+
+        raises(KeyError, lambda: self.group_backend[u'not existing group'])
+
+    def test_contains(self):
+        assert u'AdminGroup' in self.group_backend
+        assert u'FruitGroup' in self.group_backend
+
+        assert u'not existing group' not in self.group_backend
+
+    def  test_membergroups(self):
+        apple_groups = self.group_backend.membergroups(u'Apple')
+        assert 1 == len(apple_groups)
+        assert u'FruitGroup' in apple_groups
+        assert u'AdminGroup' not in apple_groups
+
+        john_doe_groups = self.group_backend.membergroups(u'JohnDoe')
+        assert 2 == len(john_doe_groups)
+        assert u'EditorGroup' in john_doe_groups
+        assert u'AdminGroup' in john_doe_groups
+        assert u'FruitGroup' not in john_doe_groups
+
+
+coverage_modules = ['MoinMoin.groups']
--- a/MoinMoin/groups/_test/test_backend_namager.py	Mon May 25 21:51:08 2009 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,53 +0,0 @@
-# -*- coding: iso-8859-1 -*-
-
-"""
-MoinMoin.groups.BackendManager test
-
-@copyright: 2009 MoinMoin:DmitrijsMilajevs
-@license: GPL, see COPYING for details
-"""
-
-from py.test import raises
-
-from MoinMoin.groups import BackendManager
-
-
-class TestBackendManager(object):
-
-    def setup_method(self, method):
-        self.admin_group = frozenset([u'Admin', u'JohnDoe'])
-        self.editor_group = frozenset([u'MainEditor', u'JohnDoe'])
-        self.fruit_group = frozenset([u'Apple', u'Banana'])
-
-        groups = {u'AdminGroup': self.admin_group,
-                  u'EditorGroup': self.editor_group,
-                  u'FruitGroup': self.fruit_group}
-
-        self.group_backend = BackendManager(backend=groups)
-
-    def test_getitem(self):
-        assert self.admin_group == self.group_backend[u'AdminGroup']
-        assert self.fruit_group == self.group_backend[u'FruitGroup']
-
-        raises(KeyError, lambda: self.group_backend[u'not existing group'])
-
-    def test_contains(self):
-        assert u'AdminGroup' in self.group_backend
-        assert u'FruitGroup' in self.group_backend
-
-        assert u'not existing group' not in self.group_backend
-
-    def  test_membergroups(self):
-        apple_groups = self.group_backend.membergroups(u'Apple')
-        assert 1 == len(apple_groups)
-        assert u'FruitGroup' in apple_groups
-        assert u'AdminGroup' not in apple_groups
-
-        john_doe_groups = self.group_backend.membergroups(u'JohnDoe')
-        assert 2 == len(john_doe_groups)
-        assert u'EditorGroup' in john_doe_groups
-        assert u'AdminGroup' in john_doe_groups
-        assert u'FruitGroup' not in john_doe_groups
-
-
-coverage_modules = ['MoinMoin.groups']