def METHOD_NAME(self, tdata):
    with taddons.context() as tctx:
        sc = tctx.script(
            tdata.path("../examples/addons/http-modify-query-string.py")
        )
        f = tflow.tflow(req=tutils.treq(path="/search?q=term"))
        sc.request(f)
        assert f.request.query["mitmproxy"] == "rocks"
        f.request.path = "/"
        sc.request(f)
        assert f.request.query["mitmproxy"] == "rocks"