web/test/unittest_views_editforms.py
branchtls-sprint
changeset 1721 694f6a50e138
parent 1654 57b9fd2462b8
child 1739 78b0819162a8
--- a/web/test/unittest_views_editforms.py	Mon May 11 11:01:40 2009 +0200
+++ b/web/test/unittest_views_editforms.py	Mon May 11 11:20:38 2009 +0200
@@ -9,13 +9,12 @@
 class AutomaticEntityFormTC(EnvBasedTC):
 
     def test_custom_widget(self):
-        AEF.rwidgets.tag_relation(AutoCompletionWidget,
-                                  ('CWUser', 'login', '*'), 'subject')
+        AEF.rwidgets.tag_relation('!CWUser', 'login', '*', AutoCompletionWidget)
         form = self.vreg.select_object('forms', 'edition', self.request(), None,
                                        entity=self.user())
         field = form.field_by_name('login')
         self.assertIsInstance(field.widget, AutoCompletionWidget)
-        AEF.rwidgets.del_rtag(('CWUser', 'login', '*'),'subject')
+        AEF.rwidgets.del_rtag('!CWUser', 'login', '*')
 
 
     def test_euser_relations_by_category(self):