示例#1
0
 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
示例#2
0
 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()
     )
示例#3
0
def default_addons():
    return [
        anticache.AntiCache(),
        anticomp.AntiComp(),
        stickyauth.StickyAuth(),
        stickycookie.StickyCookie(),
        script.ScriptLoader(),
        filestreamer.FileStreamer(),
        replace.Replace(),
        setheaders.SetHeaders(),
    ]
示例#4
0
def default_addons():
    return [
        anticache.AntiCache(),
        anticomp.AntiComp(),
        stickyauth.StickyAuth(),
        stickycookie.StickyCookie(),
        script.ScriptLoader(),
        filestreamer.FileStreamer(),
        # replace.Replace(),
        setheaders.SetHeaders(),
        serverplayback.ServerPlayback(),
        clientplayback.ClientPlayback(),
    ]
示例#5
0
 def mkmaster(self, **opts):
     o = options.Options(**opts)
     m = mastertest.RecordingMaster(o, proxy.DummyServer())
     sh = setheaders.SetHeaders()
     m.addons.add(sh)
     return m, sh