fix tests on windows

This commit is contained in:
Maximilian Hils 2014-07-18 03:13:52 +02:00
parent 05a8c52f8f
commit a48cccadb5

View File

@ -70,7 +70,8 @@ class TestProcessProxyOptions:
self.assert_err("transparent mode not supported", "-T") self.assert_err("transparent mode not supported", "-T")
@mock.patch("libmproxy.platform.resolver") @mock.patch("libmproxy.platform.resolver")
def test_transparent_reverse(self, o): @mock.patch("libmproxy.platform.setup")
def test_transparent_reverse(self, _, __):
self.assert_err("mutually exclusive", "-R", "http://localhost", "-T") self.assert_err("mutually exclusive", "-R", "http://localhost", "-T")
self.assert_noerr("-T") self.assert_noerr("-T")
self.assert_err("Invalid server specification", "-R", "reverse") self.assert_err("Invalid server specification", "-R", "reverse")