reenable options test

This commit is contained in:
Thomas Kriechbaumer 2016-08-16 11:00:21 +02:00
parent cd35a6ff47
commit eb83107e1c
1 changed files with 13 additions and 13 deletions

View File

@ -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(