def METHOD_NAME(self, tmpdir):
    tmpfile = tmpdir.join("tmpfile")
    try:
        UrlIndexAddon(tmpfile, index_filter="i~nvalid")
    except ValueError:
        assert True
    else:
        assert False