def METHOD_NAME(self, p, exp, s, test_discrete, pr_series):
    """Compare output for a single window to calculation by hand"""
    pr = pr_series(p, units="mm/day")
    smd = pr_series(s, units="mm/day")
    df = griffiths_drought_factor(pr, smd, "xlim").isel(time=-1)
    np.testing.assert_allclose(df, exp, atol=1e-5)
    if test_discrete:
        df = griffiths_drought_factor(pr, smd, "discrete").isel(time=-1)
        np.testing.assert_allclose(df, round(exp), atol=1e-5)