web/test/unittest_viewselector.py
branchtls-sprint
changeset 635 305da8d6aa2d
parent 587 c8ff5d88f164
child 688 cddfbdee0eb3
--- a/web/test/unittest_viewselector.py	Mon Feb 16 20:05:55 2009 +0100
+++ b/web/test/unittest_viewselector.py	Mon Feb 16 20:06:18 2009 +0100
@@ -9,7 +9,7 @@
 
 
 from cubicweb import CW_SOFTWARE_ROOT as BASE, Binary
-from cubicweb.common.selectors import match_user_group
+from cubicweb.common.selectors import match_user_groups
 
 from cubicweb.web._exceptions import NoSelectableObject
 from cubicweb.web.action import Action
@@ -411,8 +411,7 @@
         class SomeAction(Action):
             id = 'yo'
             category = 'foo'
-            __selectors__ = (match_user_group,)
-            require_groups = ('owners', )            
+            __selectors__ = (match_user_groups('owners'),)
         self.vreg.register_vobject_class(SomeAction)
         self.failUnless(SomeAction in self.vreg['actions']['yo'], self.vreg['actions'])
         try: