def mkmaster(self, **opts): s = state.State() o = options.Options(**opts) m = mastertest.RecordingMaster(o, None, s) sh = setheaders.SetHeaders() m.addons.add(o, sh) return m, sh
def test_configure(self): sh = setheaders.SetHeaders() o = options.Options( setheaders = [("~b", "one", "two")] ) tutils.raises( "invalid setheader filter pattern", sh.configure, o, o.keys() )
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 mkmaster(self, **opts): o = options.Options(**opts) m = mastertest.RecordingMaster(o, proxy.DummyServer()) sh = setheaders.SetHeaders() m.addons.add(sh) return m, sh