def test_supports_field_list_decoding(self):
        class MyForm(Form):
            a = FieldList(TextField())

        assert flatten_json(MyForm, {'a': [1, 2, 3]}) == {
            'a-0': 1,
            'a-1': 2,
            'a-2': 3
        }
dataset/ETHPy150Open kvesteri/wtforms-json/tests/test_json_decoder.py/TestJsonDecoder.test_supports_field_list_decoding/original