aboutsummaryrefslogtreecommitdiffstats
path: root/test/tutils.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-07-30 17:29:36 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-07-30 17:29:36 +1200
commite52a37ffa962f662cfcab8056c8af5b0ac9f416b (patch)
treea7d9f4edf1080422edd19f1360298e914628e675 /test/tutils.py
parente26aac1d3c6e4ca9f09cffa9d61d5a632dc35f14 (diff)
downloadmitmproxy-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.py3
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)