diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-30 17:29:36 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-30 17:29:36 +1200 |
commit | e52a37ffa962f662cfcab8056c8af5b0ac9f416b (patch) | |
tree | a7d9f4edf1080422edd19f1360298e914628e675 /test/tutils.py | |
parent | e26aac1d3c6e4ca9f09cffa9d61d5a632dc35f14 (diff) | |
download | mitmproxy-e52a37ffa962f662cfcab8056c8af5b0ac9f416b.tar.gz mitmproxy-e52a37ffa962f662cfcab8056c8af5b0ac9f416b.tar.bz2 mitmproxy-e52a37ffa962f662cfcab8056c8af5b0ac9f416b.zip |
Cleanup of libpathod.test, test example for front page.
Diffstat (limited to 'test/tutils.py')
-rw-r--r-- | test/tutils.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/tutils.py b/test/tutils.py index d9e543a1..60f2ffc0 100644 --- a/test/tutils.py +++ b/test/tutils.py @@ -35,8 +35,7 @@ class DaemonTests: ) def get(self, spec): - scheme = "https" if self.ssl else "http" - return requests.get("%s://localhost:%s/p/%s"%(scheme, self.d.port, spec), verify=False) + return requests.get(self.d.p(spec), verify=False) def pathoc(self, spec, timeout=None): c = pathoc.Pathoc("localhost", self.d.port) |