Beispiel #1
0
 def test_config(self):
     sc = stickycookie.StickyCookie()
     o = options.Options(stickycookie = "~b")
     tutils.raises(
         "invalid filter",
         sc.configure, o, o.keys()
     )
Beispiel #2
0
 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
Beispiel #3
0
def default_addons():
    return [
        anticache.AntiCache(),
        anticomp.AntiComp(),
        stickyauth.StickyAuth(),
        stickycookie.StickyCookie(),
        script.ScriptLoader(),
        filestreamer.FileStreamer(),
        replace.Replace(),
        setheaders.SetHeaders(),
    ]
Beispiel #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(),
    ]
Beispiel #5
0
 def mk(self):
     o = options.Options(stickycookie = ".*")
     m = master.Master(o, proxy.DummyServer())
     sc = stickycookie.StickyCookie()
     m.addons.add(sc)
     return m, sc