web/test/unittest_views_editforms.py
changeset 4172 4d4cef034eec
parent 4080 f88331eb374c
child 4252 6c4f109c2b03
--- a/web/test/unittest_views_editforms.py	Mon Dec 21 20:28:01 2009 +0100
+++ b/web/test/unittest_views_editforms.py	Mon Dec 21 20:28:08 2009 +0100
@@ -25,7 +25,7 @@
                             {'widget': AutoCompletionWidget(autocomplete_initfunc='get_logins')})
         form = self.vreg['forms'].select('edition', self.request(),
                                          entity=self.user())
-        field = form.field_by_name('login')
+        field = form.field_by_name('login', 'subject')
         self.assertIsInstance(field.widget, AutoCompletionWidget)
         AFFK.del_rtag('CWUser', 'login', '*', 'subject')