def test_fieldlist(self):
        class _Form(Form):
            fields=[
                FieldList('list', field=Field('number', convs.Int())),
            ]
        env = AppEnvironment.create()
        form = _Form(env)
        self.assertEqual(form.raw_data, MultiDict())
        self.assertEqual(form.python_data, {'list': []})
        self.assert_(not form.accept(MultiDict((('list-indices', '1'), ('list-indices', '2'), ('list-indices', '3')), 
                                           **{'list.1': '1', 'list.2': '2', 'list.3': '3s'})))
        self.assertEqual(form.python_data, {'list': [1, 2, None]})
        self.assertEqual(form.errors, {'list.3': convs.Int.error_notvalid})
Fieldlist errors
dataset/ETHPy150Open SmartTeleMax/iktomi/tests/forms/forms.py/FormFieldListErrorsTests.test_fieldlist