def test_fieldlist_of_fieldsets(self):
        class _Form(Form):
            fields=[
                FieldList('list', field=FieldSet(
                    'set',
                    fields=[Field('number', convs.Int(), permissions='r')],
                )),
            ]
        env = AppEnvironment.create()
        form = _Form(env, initial={'list':[{'number':1}, {'number':2}]})
        self.assertEqual(form.raw_data, MultiDict((('list-indices', '1'), ('list-indices', '2')), **{'list.1.number': '1', 'list.2.number': '2'}))
        self.assertEqual(form.python_data, {'list': [{'number':1}, {'number':2}]})
        self.assert_(form.accept(MultiDict((('list-indices', '1'), 
                                            ('list-indices', '2')),
                                           **{'list.1.number': '2', 'list.2.number': '3'})))
        self.assertEqual(form.python_data, {'list': [{'number':1}, {'number':2}]})
Returns the mode of a 1D vectors, and the 1st more frequent element if more than 1
dataset/ETHPy150Open SmartTeleMax/iktomi/tests/forms/forms.py/FormReadonlyFieldsTest.test_fieldlist_of_fieldsets--crossover with--dataset/ETHPy150Open charanpald/APGL/apgl/util/Util.py/Util.mode