def METHOD_NAME(capsys, storage):
    """Test plot error message if experiment not found."""
    returncode = orion.core.cli.main(["plot", "regret", "--name", "idontexist"])
    assert returncode == 1
    captured = capsys.readouterr().err
    assert captured.startswith(
        "Error: No experiment with given name 'idontexist' and version '*'"
    )