aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/mitmproxy/test_proxy.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/mitmproxy/test_proxy.py b/test/mitmproxy/test_proxy.py
index 84838018..f7c64e50 100644
--- a/test/mitmproxy/test_proxy.py
+++ b/test/mitmproxy/test_proxy.py
@@ -85,22 +85,22 @@ class TestProcessProxyOptions:
@mock.patch("mitmproxy.platform.resolver")
def test_modes(self, _):
- # self.assert_noerr("-R", "http://localhost")
- # self.assert_err("expected one argument", "-R")
- # self.assert_err("Invalid server specification", "-R", "reverse")
- #
- # self.assert_noerr("-T")
- #
- # self.assert_noerr("-U", "http://localhost")
- # self.assert_err("expected one argument", "-U")
- # self.assert_err("Invalid server specification", "-U", "upstream")
- #
- # self.assert_noerr("--upstream-auth", "test:test")
- # self.assert_err("expected one argument", "--upstream-auth")
+ self.assert_noerr("-R", "http://localhost")
+ self.assert_err("expected one argument", "-R")
+ self.assert_err("Invalid server specification", "-R", "reverse")
+
+ self.assert_noerr("-T")
+
+ self.assert_noerr("-U", "http://localhost")
+ self.assert_err("expected one argument", "-U")
+ self.assert_err("Invalid server specification", "-U", "upstream")
+
+ self.assert_noerr("--upstream-auth", "test:test")
+ self.assert_err("expected one argument", "--upstream-auth")
self.assert_err(
"Invalid upstream auth specification", "--upstream-auth", "test"
)
- # self.assert_err("mutually exclusive", "-R", "http://localhost", "-T")
+ self.assert_err("mutually exclusive", "-R", "http://localhost", "-T")
def test_socks_auth(self):
self.assert_err(