def METHOD_NAME(single_with_trials):
    """Test that output is used properly"""
    output = "custom"
    filename = f"{output}.png"
    with AssertNewFile(filename):
        returncode = orion.core.cli.main(
            ["plot", "regret", "--name", "test_single_exp", "--output", output]
        )
        assert returncode == 0