diff MoinMoin/groups/_tests/test_backend_manager.py @ 4775:0a0387a9eb1e

Groups2009: BackendManager does not require request object in __init__
author Dmitrijs Milajevs <dimazest@gmail.com>
date Sun, 31 May 2009 21:17:49 +0200
parents c3e904a9c00b
children 1b84b35fbe91
line wrap: on
line diff
--- a/MoinMoin/groups/_tests/test_backend_manager.py	Sun May 31 21:17:34 2009 +0200
+++ b/MoinMoin/groups/_tests/test_backend_manager.py	Sun May 31 21:17:49 2009 +0200
@@ -26,8 +26,7 @@
                   u'EditorGroup': self.editor_group,
                   u'FruitGroup': self.fruit_group}
 
-        self.group_backend = BackendManager(request=self.request,
-                                            backend=groups)
+        self.group_backend = BackendManager(backend=groups)
 
     def test_getitem(self):
         """
@@ -92,8 +91,7 @@
         # Add "Group" postfix for every group name received from a backend
         mapper_from_backend = lambda group_name: "%sGroup" % group_name
 
-        self.group_backend = BackendManager(request=self.request,
-                                            backend=groups,
+        self.group_backend = BackendManager(backend=groups,
                                             mapper_to_backend=mapper_to_backend,
                                             mapper_from_backend=mapper_from_backend)