mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-24 04:14:57 +08:00
reenable options test
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user