164 |
164 |
165 def test_automatic_inline_edit_formview(self): |
165 def test_automatic_inline_edit_formview(self): |
166 geid = self.execute('CWGroup X LIMIT 1')[0][0] |
166 geid = self.execute('CWGroup X LIMIT 1')[0][0] |
167 rset = self.execute('CWUser X LIMIT 1') |
167 rset = self.execute('CWUser X LIMIT 1') |
168 self.view('inline-edition', rset, row=0, col=0, rtype='in_group', |
168 self.view('inline-edition', rset, row=0, col=0, rtype='in_group', |
169 peid=geid, role='object', template=None, i18nctx='', |
169 peid=geid, role='object', i18nctx='', pform=MOCKPFORM, |
170 pform=MOCKPFORM).source |
170 template=None).source |
171 |
171 |
172 def test_automatic_inline_creation_formview(self): |
172 def test_automatic_inline_creation_formview(self): |
173 geid = self.execute('CWGroup X LIMIT 1')[0][0] |
173 geid = self.execute('CWGroup X LIMIT 1')[0][0] |
174 self.view('inline-creation', None, etype='CWUser', rtype='in_group', |
174 self.view('inline-creation', None, etype='CWUser', rtype='in_group', |
175 peid=geid, template=None, i18nctx='', role='object', |
175 peid=geid, petype='CWGroup', i18nctx='', role='object', pform=MOCKPFORM, |
176 pform=MOCKPFORM).source |
176 template=None) |
177 |
177 |
178 MOCKPFORM = mock_object(form_previous_values={}, form_valerror=None) |
178 MOCKPFORM = mock_object(form_previous_values={}, form_valerror=None) |
179 |
179 |
180 if __name__ == '__main__': |
180 if __name__ == '__main__': |
181 unittest_main() |
181 unittest_main() |