def test_validate_html_input(self):
        input_data = MultiValueDict({"[0]": ["123"], "[1]": ["456"]})
        expected_output = [123, 456]
        serializer = self.Serializer(data=input_data)
        assert serializer.is_valid()
        assert serializer.validated_data == expected_output
HTML input should be able to mock list structures using [x] style ids.
dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_serializer_lists.py/TestListSerializer.test_validate_html_input