def test_config(self): sc = stickycookie.StickyCookie() o = options.Options(stickycookie = "~b") tutils.raises( "invalid filter", sc.configure, o, o.keys() )
def mk(self): s = state.State() o = options.Options(stickycookie=".*") m = master.FlowMaster(o, None, s) sc = stickycookie.StickyCookie() m.addons.add(o, sc) return s, m, sc
def default_addons(): return [ anticache.AntiCache(), anticomp.AntiComp(), stickyauth.StickyAuth(), stickycookie.StickyCookie(), script.ScriptLoader(), filestreamer.FileStreamer(), replace.Replace(), setheaders.SetHeaders(), ]
def default_addons(): return [ anticache.AntiCache(), anticomp.AntiComp(), stickyauth.StickyAuth(), stickycookie.StickyCookie(), script.ScriptLoader(), filestreamer.FileStreamer(), # replace.Replace(), setheaders.SetHeaders(), serverplayback.ServerPlayback(), clientplayback.ClientPlayback(), ]
def mk(self): o = options.Options(stickycookie = ".*") m = master.Master(o, proxy.DummyServer()) sc = stickycookie.StickyCookie() m.addons.add(sc) return m, sc