web/test/unittest_views_editforms.py
changeset 10241 9d2f53777430
parent 9990 c84ad981fc4a
child 10242 3efd572a137a
--- a/web/test/unittest_views_editforms.py	Thu Feb 12 18:25:07 2015 +0100
+++ b/web/test/unittest_views_editforms.py	Thu Feb 12 18:39:04 2015 +0100
@@ -41,7 +41,7 @@
         with self.admin_access.web_request() as req:
             AFFK.tag_subject_of(('CWUser', 'login', '*'),
                                 {'widget': AutoCompletionWidget(autocomplete_initfunc='get_logins')})
-            form = self.vreg['forms'].select('edition', req, entity=self.user(req))
+            form = self.vreg['forms'].select('edition', req, entity=req.user)
             field = form.field_by_name('login', 'subject')
             self.assertIsInstance(field.widget, AutoCompletionWidget)
             AFFK.del_rtag('CWUser', 'login', '*', 'subject')