aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_proxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_proxy.py')
-rw-r--r--test/test_proxy.py9
1 files changed, 9 insertions, 0 deletions
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"]