diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-23 16:28:34 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-23 16:28:34 +1200 |
commit | e354974787db631c6bacc7dd014cb7e2bac5ff9c (patch) | |
tree | 7affc3e7cb6d799bb821e580192e0fcb0c26d10e /test/tutils.py | |
parent | 773ada882dcd21bcb71d82cd69c1cd96d230c0e0 (diff) | |
download | mitmproxy-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.py | 6 |
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" |