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