async def METHOD_NAME(
    self, monkeypatch, attribute_name, attribute_value
):
    # mock attribute_name to be a function that generates attribute_value
    monkeypatch.setitem(deployment.FIELDS, attribute_name, lambda: attribute_value)
    monkeypatch.setenv(
        name=f"PREFECT__RUNTIME__DEPLOYMENT__{attribute_name.upper()}", value="foo"
    )
    with pytest.raises(ValueError, match="cannot be mocked"):
        getattr(deployment, attribute_name)