web/test/unittest_views_editforms.py
branchtls-sprint
changeset 1739 78b0819162a8
parent 1721 694f6a50e138
child 1797 c2a80130b06d
--- a/web/test/unittest_views_editforms.py	Tue May 12 11:49:30 2009 +0200
+++ b/web/test/unittest_views_editforms.py	Tue May 12 11:56:12 2009 +0200
@@ -9,7 +9,8 @@
 class AutomaticEntityFormTC(EnvBasedTC):
 
     def test_custom_widget(self):
-        AEF.rwidgets.tag_relation('!CWUser', 'login', '*', AutoCompletionWidget)
+        AEF.rwidgets.tag_subject_of(('CWUser', 'login', '*'),
+                                    AutoCompletionWidget)
         form = self.vreg.select_object('forms', 'edition', self.request(), None,
                                        entity=self.user())
         field = form.field_by_name('login')