'HTML input should be able to mock list structures using [x]
style prefixes.'

def test_validate_html_input(self):

    input_data = MultiValueDict({'[0]integer': ['123'], '[0]boolean': ['true'], '[1]integer': ['456'], '[1]boolean': ['false']})
    expected_output = [{'integer': 123, 'boolean': True}, {'integer': 456, 'boolean': False}]
    serializer = self.Serializer(data=input_data)
    assert serializer.is_valid()
    assert (serializer.validated_data == expected_output)
