def test_simple(self):
        class _Form(Form):
            fields=[
                Field('first', convs.Int(required=True)),
                Field('second', convs.Int(required=True)),
            ]
        env = AppEnvironment.create()
        form = _Form(env)
        self.assert_(not form.accept(MultiDict(first='1')))
        self.assertEqual(form.errors, {'second': convs.Converter.error_required})
Accept with errors
dataset/ETHPy150Open SmartTeleMax/iktomi/tests/forms/forms.py/FormErrorsTests.test_simple