From 5c7fa7a594b2179fe5a223c2d8a449f0ca4c629b Mon Sep 17 00:00:00 2001 From: iroiro123 Date: Tue, 23 Jun 2015 00:57:33 +0900 Subject: add unit tests for spoof mode --- test/test_proxy.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/test_proxy.py') diff --git a/test/test_proxy.py b/test/test_proxy.py index a618ae6c..d1e72f75 100644 --- a/test/test_proxy.py +++ b/test/test_proxy.py @@ -90,6 +90,12 @@ class TestProcessProxyOptions: self.assert_err("expected one argument", "-U") self.assert_err("Invalid server specification", "-U", "upstream") + self.assert_noerr("--spoof") + self.assert_noerr("--ssl-spoof") + + self.assert_noerr("--spoofed-port", "443") + self.assert_err("expected one argument", "--spoofed-port") + self.assert_err("mutually exclusive", "-R", "http://localhost", "-T") def test_client_certs(self): -- cgit v1.2.3