web/test/unittest_views_editforms.py
changeset 3589 a5432f99f2d9
parent 3369 7b88d12b4ee2
parent 3587 5b3725f315fc
child 3722 c414f402cbff
--- a/web/test/unittest_views_editforms.py	Wed Sep 30 18:57:42 2009 +0200
+++ b/web/test/unittest_views_editforms.py	Wed Oct 07 12:31:08 2009 +0200
@@ -34,7 +34,6 @@
                           [('login', 'subject'),
                            ('upassword', 'subject'),
                            ('in_group', 'subject'),
-                           ('in_state', 'subject'),
                            ('eid', 'subject'),
                            ])
         self.assertListEquals(rbc(e, 'secondary'),
@@ -59,6 +58,7 @@
         # owned_by is defined both as subject and object relations on CWUser
         self.assertListEquals(rbc(e, 'generated'),
                               [('use_email', 'subject'),
+                               ('in_state', 'subject'),
                                ('has_text', 'subject'),
                                ('identity', 'subject'),
                                ('is', 'subject'),
@@ -152,12 +152,12 @@
         geid = self.execute('CWGroup X LIMIT 1')[0][0]
         rset = self.execute('CWUser X LIMIT 1')
         self.view('inline-edition', rset, row=0, col=0, rtype='in_group',
-                  peid=geid, role='subject', template=None, i18nctx='').source
+                  peid=geid, role='object', template=None, i18nctx='').source
 
     def test_automatic_inline_creation_formview(self):
         geid = self.execute('CWGroup X LIMIT 1')[0][0]
         self.view('inline-creation', None, etype='CWUser', rtype='in_group',
-                  peid=geid, template=None, i18nctx='', role='subject').source
+                  peid=geid, template=None, i18nctx='', role='object').source
 
 
 if __name__ == '__main__':