aboutsummaryrefslogtreecommitdiffstats
path: root/test/tutils.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-07-19 18:17:09 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-07-22 15:30:34 +0200
commit11ac387df2a49d132a08648b6cb5121224924c9d (patch)
treea4d141d638211fa4f98d12edc7f07680b3f394a6 /test/tutils.py
parent6d5a3da9294d5bc6758ded173729042573c9fe5f (diff)
downloadmitmproxy-11ac387df2a49d132a08648b6cb5121224924c9d.tar.gz
mitmproxy-11ac387df2a49d132a08648b6cb5121224924c9d.tar.bz2
mitmproxy-11ac387df2a49d132a08648b6cb5121224924c9d.zip
rename content -> body
Diffstat (limited to 'test/tutils.py')
-rw-r--r--test/tutils.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/tutils.py b/test/tutils.py
index f7fcc312..a728e852 100644
--- a/test/tutils.py
+++ b/test/tutils.py
@@ -62,7 +62,7 @@ class DaemonTests(object):
def getpath(self, path, params=None):
scheme = "https" if self.ssl else "http"
- return requests.get(
+ resp = requests.get(
"%s://localhost:%s/%s" % (
scheme,
self.d.port,
@@ -71,9 +71,13 @@ class DaemonTests(object):
verify=False,
params=params
)
+ resp.body = resp.content
+ return resp
def get(self, spec):
- return requests.get(self.d.p(spec), verify=False)
+ resp = requests.get(self.d.p(spec), verify=False)
+ resp.body = resp.content
+ return resp
def pathoc(
self,