def test_iterator(self): form = objects.PersonForm(obj=self.obj, data=self.submit) for f in form: print f.label_tag() print f.render(cls="popup")
def test_form(self): form = objects.PersonForm(object=self.obj, data=self.submit) form.render() with self.assertRaises(orm.DocumentException) as e: form.validate()