def METHOD_NAME(api_schema):
    # When API expects `text/csv`
    # And there is no registered serializer for this media type
    @given(case=api_schema["/csv"]["POST"].as_strategy())
    @settings(max_examples=5)
    def test(case):
        pass
    # Then there should be an error indicating this
    with pytest.raises(
        SerializationNotPossible,
        match="Schemathesis can't serialize data to any of the defined media types: text/csv",
    ):
        test()