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

def test_validate_html_input(self):

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