aboutsummaryrefslogtreecommitdiffstats
path: root/test/tutils.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-07-23 16:28:34 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-07-23 16:28:34 +1200
commite354974787db631c6bacc7dd014cb7e2bac5ff9c (patch)
tree7affc3e7cb6d799bb821e580192e0fcb0c26d10e /test/tutils.py
parent773ada882dcd21bcb71d82cd69c1cd96d230c0e0 (diff)
downloadmitmproxy-e354974787db631c6bacc7dd014cb7e2bac5ff9c.tar.gz
mitmproxy-e354974787db631c6bacc7dd014cb7e2bac5ff9c.tar.bz2
mitmproxy-e354974787db631c6bacc7dd014cb7e2bac5ff9c.zip
100% test coverage for app.py
Diffstat (limited to 'test/tutils.py')
-rw-r--r--test/tutils.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/tutils.py b/test/tutils.py
index 3c1b415e..3b430825 100644
--- a/test/tutils.py
+++ b/test/tutils.py
@@ -20,9 +20,11 @@ class DaemonTests:
def setUp(self):
self.d.clear_log()
- def getpath(self, path):
+ def getpath(self, path, params=None):
scheme = "https" if self.SSL else "http"
- return requests.get("%s://localhost:%s/%s"%(scheme, self.d.port, path), verify=False)
+ return requests.get(
+ "%s://localhost:%s/%s"%(scheme, self.d.port, path), verify=False, params=params
+ )
def get(self, spec):
scheme = "https" if self.SSL else "http"