diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-07-19 18:17:09 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-07-22 15:30:34 +0200 |
commit | 11ac387df2a49d132a08648b6cb5121224924c9d (patch) | |
tree | a4d141d638211fa4f98d12edc7f07680b3f394a6 /test/test_pathod.py | |
parent | 6d5a3da9294d5bc6758ded173729042573c9fe5f (diff) | |
download | mitmproxy-11ac387df2a49d132a08648b6cb5121224924c9d.tar.gz mitmproxy-11ac387df2a49d132a08648b6cb5121224924c9d.tar.bz2 mitmproxy-11ac387df2a49d132a08648b6cb5121224924c9d.zip |
rename content -> body
Diffstat (limited to 'test/test_pathod.py')
-rw-r--r-- | test/test_pathod.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py index c8060594..4adc9c22 100644 --- a/test/test_pathod.py +++ b/test/test_pathod.py @@ -51,7 +51,7 @@ class TestNoApi(tutils.DaemonTests): assert self.getpath("/log").status_code == 404 r = self.getpath("/") assert r.status_code == 200 - assert not "Log" in r.content + assert not "Log" in r.body class TestNotAfterConnect(tutils.DaemonTests): @@ -119,7 +119,7 @@ class TestNocraft(tutils.DaemonTests): def test_nocraft(self): r = self.get(r"200:b'\xf0'") assert r.status_code == 800 - assert "Crafting disabled" in r.content + assert "Crafting disabled" in r.body class CommonTests(tutils.DaemonTests): @@ -152,7 +152,7 @@ class CommonTests(tutils.DaemonTests): def test_disconnect(self): rsp = self.get("202:b@100k:d200") - assert len(rsp.content) < 200 + assert len(rsp.body) < 200 def test_parserr(self): rsp = self.get("400:msg,b:") @@ -161,7 +161,7 @@ class CommonTests(tutils.DaemonTests): def test_static(self): rsp = self.get("200:b<file") assert rsp.status_code == 200 - assert rsp.content.strip() == "testfile" + assert rsp.body.strip() == "testfile" def test_anchor(self): rsp = self.getpath("anchor/foo") @@ -201,7 +201,7 @@ class CommonTests(tutils.DaemonTests): def test_source_access_denied(self): rsp = self.get("200:b</foo") assert rsp.status_code == 800 - assert "File access denied" in rsp.content + assert "File access denied" in rsp.body def test_proxy(self): r, _ = self.pathoc([r"get:'http://foo.com/p/202':da"]) |