diff MoinMoin/groups/backends/_tests/test_config_group.py @ 4803:167db6117bb4

Groups2009: pep8 fixes and typo elimination. BaseGroup._iter optimization. Test of group names mapping was removed.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Thu, 11 Jun 2009 13:48:54 +0200
parents 3b05bf18c0d1
children 3cea38408fe6
line wrap: on
line diff
--- a/MoinMoin/groups/backends/_tests/test_config_group.py	Wed Jun 10 20:32:42 2009 +0200
+++ b/MoinMoin/groups/backends/_tests/test_config_group.py	Thu Jun 11 13:48:54 2009 +0200
@@ -10,27 +10,20 @@
 
 """
 
-from  MoinMoin.groups.backends._tests import BackendTest, BackendTestMapping, Config
+from  MoinMoin.groups.backends._tests import BackendTest
 from MoinMoin.groups.backends import config_group
 from MoinMoin.groups import GroupManager
+from MoinMoin._tests import wikiconfig
+
 
 class TestConfigBackend(BackendTest):
 
-    class Config(Config):
+    class Config(wikiconfig.Config):
+
         def group_manager_init(self, request):
             self.config_groups = BackendTest.test_groups
             return GroupManager(backends=[config_group.Backend(request)])
 
-class TestConfigBackendMapping(TestConfigBackend):
-
-    class Config(Config):
-        def group_manager_init(self, request):
-            backend = config_group.Backend(request, TestConfigBackend.mapped_groups)
-
-            backend.to_backend_name = self.to_backend_name
-            backend.to_group_name = self.to_group_name
-
-            return GroupManager(backends=[backend])
 
 coverage_modules = ['MoinMoin.groups.backends.config_group']