diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-11-13 11:50:28 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-11-13 11:50:28 +1300 |
commit | fe01b1435a2acc9896b24a814e535558884a6143 (patch) | |
tree | b1795dffd08ecfc06ccbada26f6326732085ae6e /test | |
parent | 3b00bc339d1c65703431e92cfeb2b7436790d04e (diff) | |
download | mitmproxy-fe01b1435a2acc9896b24a814e535558884a6143.tar.gz mitmproxy-fe01b1435a2acc9896b24a814e535558884a6143.tar.bz2 mitmproxy-fe01b1435a2acc9896b24a814e535558884a6143.zip |
upstream_proxy_auth -> upstream_auth
Also clarify what this does in commandline help.
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/addons/test_upstream_auth.py (renamed from test/mitmproxy/addons/test_upstream_proxy_auth.py) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/mitmproxy/addons/test_upstream_proxy_auth.py b/test/mitmproxy/addons/test_upstream_auth.py index d5d6a3e3..985b13a7 100644 --- a/test/mitmproxy/addons/test_upstream_proxy_auth.py +++ b/test/mitmproxy/addons/test_upstream_auth.py @@ -4,11 +4,11 @@ from mitmproxy import exceptions from mitmproxy.test import taddons from mitmproxy.test import tflow from mitmproxy.test import tutils -from mitmproxy.addons import upstream_proxy_auth +from mitmproxy.addons import upstream_auth def test_configure(): - up = upstream_proxy_auth.UpstreamProxyAuth() + up = upstream_auth.UpstreamAuth() with taddons.context() as tctx: tctx.configure(up, upstream_auth="test:test") assert up.auth == b"Basic" + b" " + base64.b64encode(b"test:test") @@ -40,7 +40,7 @@ def test_configure(): def test_simple(): - up = upstream_proxy_auth.UpstreamProxyAuth() + up = upstream_auth.UpstreamAuth() with taddons.context() as tctx: tctx.configure(up, upstream_auth="foo:bar") |