aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_flow.py3
-rw-r--r--test/test_proxy.py9
2 files changed, 10 insertions, 2 deletions
diff --git a/test/test_flow.py b/test/test_flow.py
index 4090d483..d72a1894 100644
--- a/test/test_flow.py
+++ b/test/test_flow.py
@@ -167,8 +167,6 @@ class uFlow(libpry.AutoTree):
f.load_state(f2.get_state())
assert f == f2
-
-
def test_kill(self):
f = tutils.tflow()
f.request = tutils.treq()
@@ -370,6 +368,7 @@ class uFlowMaster(libpry.AutoTree):
def test_all(self):
s = flow.State()
fm = flow.FlowMaster(None, s)
+ fm.anticache = True
req = tutils.treq()
fm.handle_clientconnect(req.client_conn)
diff --git a/test/test_proxy.py b/test/test_proxy.py
index e5b3ed16..3bc5bcdb 100644
--- a/test/test_proxy.py
+++ b/test/test_proxy.py
@@ -78,6 +78,15 @@ class uRequest(libpry.AutoTree):
assert r.url() == u
assert r.assemble()
+ def test_anticache(self):
+ h = utils.Headers()
+ r = proxy.Request(None, "host", 22, "https", "GET", "/", h, "content")
+ h["if-modified-since"] = ["test"]
+ h["if-none-match"] = ["test"]
+ r.anticache()
+ assert not "if-modified-since" in r.headers
+ assert not "if-none-match" in r.headers
+
def test_getset_state(self):
h = utils.Headers()
h["test"] = ["test"]