aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2018-02-24 15:58:37 +1300
committerAldo Cortesi <aldo@nullcube.com>2018-02-24 15:58:37 +1300
commitf361ea491c4719c2a17d4abc0ef894116556a4c1 (patch)
tree2b9ceaaa4f030c3a33278d09f542b51651f6b4d7 /test
parent2aa7ac584b7884b8fd7622aec86b47d1e33a4a11 (diff)
downloadmitmproxy-f361ea491c4719c2a17d4abc0ef894116556a4c1.tar.gz
mitmproxy-f361ea491c4719c2a17d4abc0ef894116556a4c1.tar.bz2
mitmproxy-f361ea491c4719c2a17d4abc0ef894116556a4c1.zip
addon options: upstream_auth
Also the last "easy" option to shift.
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/addons/test_upstream_auth.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mitmproxy/addons/test_upstream_auth.py b/test/mitmproxy/addons/test_upstream_auth.py
index c7342bb5..53b342a2 100644
--- a/test/mitmproxy/addons/test_upstream_auth.py
+++ b/test/mitmproxy/addons/test_upstream_auth.py
@@ -9,7 +9,7 @@ from mitmproxy.addons import upstream_auth
def test_configure():
up = upstream_auth.UpstreamAuth()
- with taddons.context() as tctx:
+ with taddons.context(up) as tctx:
tctx.configure(up, upstream_auth="test:test")
assert up.auth == b"Basic" + b" " + base64.b64encode(b"test:test")
@@ -29,7 +29,7 @@ def test_configure():
def test_simple():
up = upstream_auth.UpstreamAuth()
- with taddons.context() as tctx:
+ with taddons.context(up) as tctx:
tctx.configure(up, upstream_auth="foo:bar")
f = tflow.tflow()