aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_proxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_proxy.py')
-rw-r--r--test/test_proxy.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/test/test_proxy.py b/test/test_proxy.py
index 098a8d63..13feaead 100644
--- a/test/test_proxy.py
+++ b/test/test_proxy.py
@@ -69,7 +69,7 @@ class MockParser:
def __repr__(self):
return "ParseError(%s)"%self.err
-
+
class TestProcessProxyOptions:
def p(self, *args):
@@ -132,4 +132,18 @@ class TestProcessProxyOptions:
self.assert_err("invalid single-user specification", "--singleuser", "test")
+class TestProxyServer:
+ def test_err(self):
+ parser = argparse.ArgumentParser()
+ cmdline.common_options(parser)
+ opts = parser.parse_args(args=[])
+ tutils.raises("error starting proxy server", proxy.ProxyServer, opts, 1)
+
+
+class TestDummyServer:
+ def test_simple(self):
+ d = proxy.DummyServer(None)
+ d.start_slave()
+ d.shutdown()
+