diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-04-26 12:10:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-26 12:10:39 +0200 |
commit | 7607240c30a319f37494baeca07ff735289d0315 (patch) | |
tree | 5fa84534fd65824409e273ded3ebf8632cb5cc3b /test | |
parent | 07cb83597b05b1355a6038d2b1ef96d7e7eb26d3 (diff) | |
parent | df7701bb6dd0298471bc93df40b1c6f01cb74e3d (diff) | |
download | mitmproxy-7607240c30a319f37494baeca07ff735289d0315.tar.gz mitmproxy-7607240c30a319f37494baeca07ff735289d0315.tar.bz2 mitmproxy-7607240c30a319f37494baeca07ff735289d0315.zip |
Merge pull request #2259 from mhils/2228
fix #2228
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/addons/test_dumper.py | 1 | ||||
-rw-r--r-- | test/mitmproxy/addons/test_stickycookie.py | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/test/mitmproxy/addons/test_dumper.py b/test/mitmproxy/addons/test_dumper.py index d2cefe79..d8aa593b 100644 --- a/test/mitmproxy/addons/test_dumper.py +++ b/test/mitmproxy/addons/test_dumper.py @@ -68,7 +68,6 @@ def test_simple(): ctx.configure(d, flow_detail=4) flow = tflow.tflow() flow.request = tutils.treq() - flow.request.stickycookie = True flow.client_conn = mock.MagicMock() flow.client_conn.address[0] = "foo" flow.response = tutils.tresp(content=None) diff --git a/test/mitmproxy/addons/test_stickycookie.py b/test/mitmproxy/addons/test_stickycookie.py index 9092e09b..f77d019d 100644 --- a/test/mitmproxy/addons/test_stickycookie.py +++ b/test/mitmproxy/addons/test_stickycookie.py @@ -110,8 +110,8 @@ class TestStickyCookie: f.response.headers["Set-Cookie"] = c2 sc.response(f) googlekey = list(sc.jar.keys())[0] - assert len(sc.jar[googlekey].keys()) == 1 - assert list(sc.jar[googlekey]["somecookie"].items())[0][1] == "newvalue" + assert len(sc.jar[googlekey]) == 1 + assert sc.jar[googlekey]["somecookie"] == "newvalue" def test_response_delete(self): sc = stickycookie.StickyCookie() |