web/test/unittest_form.py
branchstable
changeset 2996 866a2c135c33
parent 2755 e69a4077ffb4
child 3002 a9d7eaa07475
equal deleted inserted replaced
2995:4ef565c1d183 2996:866a2c135c33
   217         form = PFForm(self.req, redirect_path='perdu.com', entity=self.entity)
   217         form = PFForm(self.req, redirect_path='perdu.com', entity=self.entity)
   218         self.assertTextEquals(self._render_entity_field('upassword', form),
   218         self.assertTextEquals(self._render_entity_field('upassword', form),
   219                               '''<input id="upassword:%(eid)s" name="upassword:%(eid)s" tabindex="1" type="password" value="__cubicweb_internal_field__" />
   219                               '''<input id="upassword:%(eid)s" name="upassword:%(eid)s" tabindex="1" type="password" value="__cubicweb_internal_field__" />
   220 <br/>
   220 <br/>
   221 <input name="upassword-confirm:%(eid)s" tabindex="1" type="password" value="__cubicweb_internal_field__" />
   221 <input name="upassword-confirm:%(eid)s" tabindex="1" type="password" value="__cubicweb_internal_field__" />
   222 &nbsp;
   222 &#160;
   223 <span class="emphasis">confirm password</span>''' % {'eid': self.entity.eid})
   223 <span class="emphasis">confirm password</span>''' % {'eid': self.entity.eid})
   224 
   224 
   225 
   225 
   226     def test_datefield(self):
   226     def test_datefield(self):
   227         class DFForm(EntityFieldsForm):
   227         class DFForm(EntityFieldsForm):