def METHOD_NAME(self, metrics):
    limiter = RateLimiter(storage.MemoryStorage(), "1 per minute", metrics=metrics)
    assert limiter.test("foo")
    while limiter.hit("foo"):
        pass
    assert not limiter.test("foo")
    limiter.clear("foo")
    assert limiter.test("foo")