equal
deleted
inserted
replaced
86 e = self.etype_instance('CWUser') |
86 e = self.etype_instance('CWUser') |
87 e.eid = 'A' |
87 e.eid = 'A' |
88 e.req = self.req |
88 e.req = self.req |
89 geid = self.execute('CWGroup X WHERE X name "users"')[0][0] |
89 geid = self.execute('CWGroup X WHERE X name "users"')[0][0] |
90 self.req.form['__linkto'] = 'in_group:%s:subject' % geid |
90 self.req.form['__linkto'] = 'in_group:%s:subject' % geid |
91 form = self.vreg.select_object('forms', 'edition', self.req, None, entity=e) |
91 form = self.vreg.select('forms', 'edition', self.req, entity=e) |
92 form.content_type = 'text/html' |
92 form.content_type = 'text/html' |
93 pageinfo = self._check_html(form.form_render(), form, template=None) |
93 pageinfo = self._check_html(form.form_render(), form, template=None) |
94 inputs = pageinfo.find_tag('select', False) |
94 inputs = pageinfo.find_tag('select', False) |
95 self.failUnless(any(attrs for t, attrs in inputs if attrs.get('name') == 'in_group:A')) |
95 self.failUnless(any(attrs for t, attrs in inputs if attrs.get('name') == 'in_group:A')) |
96 inputs = pageinfo.find_tag('input', False) |
96 inputs = pageinfo.find_tag('input', False) |