def METHOD_NAME(self):
    sc = stickycookie.StickyCookie()
    with taddons.context(sc) as tctx:
        with pytest.raises(Exception, match="Invalid filter expression"):
            tctx.configure(sc, stickycookie="~b")
        tctx.configure(sc, stickycookie="foo")
        assert sc.flt
        tctx.configure(sc, stickycookie=None)
        assert not sc.flt