aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2011-02-25 21:23:44 +1300
committerAldo Cortesi <aldo@nullcube.com>2011-02-25 21:23:44 +1300
commit6921b9ff2a3f1f9592704e4b85c4400cad243538 (patch)
treea1971438909ee0132c97385da63ecf9acec5d081 /test
parent8cade9fbbf15480fd5b9f7410d65c928dd26f652 (diff)
downloadmitmproxy-6921b9ff2a3f1f9592704e4b85c4400cad243538.tar.gz
mitmproxy-6921b9ff2a3f1f9592704e4b85c4400cad243538.tar.bz2
mitmproxy-6921b9ff2a3f1f9592704e4b85c4400cad243538.zip
Add an indicator that sticky cookies have been applied in mitmdump.
Diffstat (limited to 'test')
-rw-r--r--test/test_dump.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_dump.py b/test/test_dump.py
index 1f6b7acc..cfa690b1 100644
--- a/test/test_dump.py
+++ b/test/test_dump.py
@@ -10,6 +10,10 @@ class uStrFuncs(libpry.AutoTree):
t.set_replay()
dump.str_response(t)
+ t = utils.treq()
+ t.stickycookie = True
+ assert "stickycookie" in dump.str_request(t)
+
class uDumpMaster(libpry.AutoTree):
def _cycle(self, m, content):