def test_fieldlist_with_initial_and_initial(self):
        class _Form(Form):
            fields=[
                FieldList('list', field=Field('number', convs.Int(), initial=2)),
            ]
        env = AppEnvironment.create()
        form = _Form(env, initial={'list': [1, 2]})
        self.assertEqual(form.raw_data, MultiDict([('list-indices', '1'),
                                                   ('list-indices', '2'),
                                                   ('list.1', '1'),
                                                   ('list.2', '2')
                                                  ]))
        self.assertEqual(form.python_data, {'list': [1, 2]})
Initialization of form object with fieldlist with initial and initial values
dataset/ETHPy150Open SmartTeleMax/iktomi/tests/forms/forms.py/FormClassInitializationTests.test_fieldlist_with_initial_and_initial