def METHOD_NAME(self, metrics):
    limiter = RateLimiter(
        storage.MemoryStorage(),
        "1 per minute; 1 per hour; 1 per day",
        metrics=metrics,
    )
    current = datetime.datetime.now(tz=datetime.UTC)
    stats = iter(
        [
            (0, 0),
            ((current + datetime.timedelta(seconds=60)).timestamp(), 0),
            ((current + datetime.timedelta(seconds=5)).timestamp(), 0),
        ]
    )
    limiter._window = pretend.stub(get_window_stats=lambda L, *a: next(stats))
    resets_in = limiter.resets_in("foo")
    assert resets_in > datetime.timedelta(seconds=0)
    assert resets_in <= datetime.timedelta(seconds=5)