diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-11-25 17:32:23 +0100 |
---|---|---|
committer | Thomas Kriechbaumer <Kriechi@users.noreply.github.com> | 2016-11-25 17:32:23 +0100 |
commit | 568f40c810f4de60f10bd814608fde8268ef7733 (patch) | |
tree | a8a5b68d0a5a2f7ab551c655564390d11096d4cd /test/mitmproxy/test_proxy.py | |
parent | 0386740404bf178e7b4a8999eb7ada252e38322b (diff) | |
download | mitmproxy-568f40c810f4de60f10bd814608fde8268ef7733.tar.gz mitmproxy-568f40c810f4de60f10bd814608fde8268ef7733.tar.bz2 mitmproxy-568f40c810f4de60f10bd814608fde8268ef7733.zip |
Fix transparent mode initialisation, refactor mitmproxy.platform (#1787)
Diffstat (limited to 'test/mitmproxy/test_proxy.py')
-rw-r--r-- | test/mitmproxy/test_proxy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mitmproxy/test_proxy.py b/test/mitmproxy/test_proxy.py index aa3b8979..177bac1f 100644 --- a/test/mitmproxy/test_proxy.py +++ b/test/mitmproxy/test_proxy.py @@ -94,11 +94,11 @@ class TestProcessProxyOptions: with tutils.tmpdir() as cadir: self.assert_noerr("--cadir", cadir) - @mock.patch("mitmproxy.platform.resolver", None) + @mock.patch("mitmproxy.platform.original_addr", None) def test_no_transparent(self): self.assert_err("transparent mode not supported", "-T") - @mock.patch("mitmproxy.platform.resolver") + @mock.patch("mitmproxy.platform.original_addr") def test_modes(self, _): self.assert_noerr("-R", "http://localhost") self.assert_err("expected one argument", "-R") |