def test_create(self):
        input_data = {
            "integers": ["123", "456"],
            "booleans": ["true", "false"]
        }
        expected_output = BasicObject(
            integers=[123, 456],
            booleans=[True, False]
        )
        serializer = self.Serializer(data=input_data)
        assert serializer.is_valid()
        assert serializer.save() == expected_output
Creation with a list of items return an object with an attribute that
dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_serializer_lists.py/TestNestedListSerializer.test_create