def METHOD_NAME(self, tmpdir):
    tmpfile = tmpdir.join("tmpfile")
    with open(tmpfile, "w") as tfile:
        json.dump(index, tfile)
    flt = f"~u .*/site.html$"
    url_injection = UrlInjectionAddon(
        f"~u .*/site.html$", tmpfile, HTMLInjection(insert=True)
    )
    assert "http://example.com:80" in url_injection.url_store
    fltr = flowfilter.parse(flt)
    f = tflow.tflow(resp=tutils.tresp())
    f.request.url = "http://example.com/site.html"
    assert fltr(f)
    assert "http://example.com:80" not in str(f.response.content)
    url_injection.response(f)
    assert "http://example.com:80" in str(f.response.content)