def METHOD_NAME(self, tmpdir):
    tmpfile = tmpdir.join("tmpfile")
    with open(tmpfile, "w") as tfile:
        tfile.write("")
    url_index = UrlIndexAddon(tmpfile, append=False)
    f = tflow.tflow(resp=tutils.tresp())
    with mock.patch(
        "examples.complex.webscanner_helper.urlindex.JSONUrlIndexWriter.add_url"
    ):
        url_index.response(f)
    assert not Path(tmpfile).exists()