def METHOD_NAME(self, monkeypatch):
    self._monkeypatch_web(monkeypatch)
    self._monkeypatch_hooks(monkeypatch)
    p = invalidation.InvalidationProcessor(
        prefixes=['/templates'], cookie_name="invalidation_cookie", timeout=60
    )
    # save a doc
    doc = {"key": "/templates/site.tmpl", "type": "/type/template"}
    web.ctx.site.save(doc)
    p.reload()
    # A cookie must be set when there is a recent update known to the processor
    p(lambda: None)
    assert self.cookie == {
        "name": "invalidation_cookie",
        "expires": p.expire_time,
        "value": web.ctx.site.get("/templates/site.tmpl").last_modified.isoformat(),
    }