web/test/unittest_views_editforms.py
changeset 2643 9976f511003b
parent 2637 07103211e511
child 2661 f8df42c9da6b
--- a/web/test/unittest_views_editforms.py	Sun Aug 02 11:54:02 2009 +0200
+++ b/web/test/unittest_views_editforms.py	Sun Aug 02 11:54:48 2009 +0200
@@ -17,7 +17,7 @@
 
     def test_custom_widget(self):
         AEF.rfields_kwargs.tag_subject_of(('CWUser', 'login', '*'),
-                                          {'widget':AutoCompletionWidget})
+                                          {'widget': AutoCompletionWidget(autocomplete_initfunc='get_logins')})
         form = self.vreg.select('forms', 'edition', self.request(),
                                 entity=self.user())
         field = form.field_by_name('login')