aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pathoc.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/test_pathoc.py
parent6d5a3da9294d5bc6758ded173729042573c9fe5f (diff)
downloadmitmproxy-11ac387df2a49d132a08648b6cb5121224924c9d.tar.gz
mitmproxy-11ac387df2a49d132a08648b6cb5121224924c9d.tar.bz2
mitmproxy-11ac387df2a49d132a08648b6cb5121224924c9d.zip
rename content -> body
Diffstat (limited to 'test/test_pathoc.py')
-rw-r--r--test/test_pathoc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_pathoc.py b/test/test_pathoc.py
index e9d1e6ab..215f691b 100644
--- a/test/test_pathoc.py
+++ b/test/test_pathoc.py
@@ -45,7 +45,7 @@ class _TestDaemon:
)
c.connect()
resp = c.request("get:/api/info")
- assert tuple(json.loads(resp.content)["version"]) == version.IVERSION
+ assert tuple(json.loads(resp.body)["version"]) == version.IVERSION
def tval(
self,
@@ -105,7 +105,7 @@ class TestDaemonSSL(_TestDaemon):
c.connect()
c.request("get:/p/200")
r = c.request("get:/api/log")
- d = json.loads(r.content)
+ d = json.loads(r.body)
assert d["log"][0]["request"]["sni"] == "foobar.com"
def test_showssl(self):
@@ -121,7 +121,7 @@ class TestDaemonSSL(_TestDaemon):
c.connect()
c.request("get:/p/200")
r = c.request("get:/api/log")
- d = json.loads(r.content)
+ d = json.loads(r.body)
assert d["log"][0]["request"]["clientcert"]["keyinfo"]
def test_http2_without_ssl(self):