def test_fieldlist(self):
        class _Form(Form):
            fields=[
                FieldList('list', field=Field('number', convs.Int(), permissions='r')),
            ]
        env = AppEnvironment.create()
        form = _Form(env, initial={'list':[1, 2]})
        self.assertEqual(sorted(form.raw_data.items()),
            [('list-indices', '1'),
             ('list-indices', '2'),
             ('list.1', '1'), 
             ('list.2', '2')])
        self.assertEqual(form.python_data, {'list': [1, 2]})
        self.assert_(form.accept(MultiDict((('list-indices', '1'),
                                            ('list-indices', 'aa'),
                                            ('list-indices', '2')),
                                            **{'list.1': '2',
                                               'list.2': '3'})))
        self.assertEqual(form.python_data, {'list': [1, 2]})
Accept of readonly fieldlist with initial values
dataset/ETHPy150Open SmartTeleMax/iktomi/tests/forms/forms.py/FormReadonlyFieldsTest.test_fieldlist