diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-05-31 18:38:11 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-05-31 18:38:11 +1200 |
commit | 6122f2da444e114091d6aec8e01a43d760503d06 (patch) | |
tree | e1d79af0525ec7c67e136f4448fdd4aa1c4415f2 /test/tutils.py | |
parent | 2ebe994375976720e80e5fe011a56dda278da3d7 (diff) | |
download | mitmproxy-6122f2da444e114091d6aec8e01a43d760503d06.tar.gz mitmproxy-6122f2da444e114091d6aec8e01a43d760503d06.tar.bz2 mitmproxy-6122f2da444e114091d6aec8e01a43d760503d06.zip |
Change test API to allow multiple pathoc requests
Add simple unit test for websocket server
Diffstat (limited to 'test/tutils.py')
-rw-r--r-- | test/tutils.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/tutils.py b/test/tutils.py index 933c7f59..842ed527 100644 --- a/test/tutils.py +++ b/test/tutils.py @@ -67,7 +67,7 @@ class DaemonTests(object): def pathoc( self, - spec, + specs, timeout=None, connect_to=None, ssl=None, @@ -84,7 +84,10 @@ class DaemonTests(object): c.connect(connect_to) if timeout: c.settimeout(timeout) - return c.request(spec) + ret = [] + for i in specs: + ret.append(c.request(i)) + return ret @contextmanager |