aboutsummaryrefslogtreecommitdiffstats
path: root/test/http/http2/test_protocol.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-07-19 18:17:30 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-07-22 15:30:51 +0200
commitd62dbee0f6cd47b4cad1ee7cc731b413600c0add (patch)
tree9957a5f77ca521cc6ddaafd36200a4b3ae000596 /test/http/http2/test_protocol.py
parent37a0cb858cda255bac8f06749a81859c82c5177f (diff)
downloadmitmproxy-d62dbee0f6cd47b4cad1ee7cc731b413600c0add.tar.gz
mitmproxy-d62dbee0f6cd47b4cad1ee7cc731b413600c0add.tar.bz2
mitmproxy-d62dbee0f6cd47b4cad1ee7cc731b413600c0add.zip
rename content -> body
Diffstat (limited to 'test/http/http2/test_protocol.py')
-rw-r--r--test/http/http2/test_protocol.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/http/http2/test_protocol.py b/test/http/http2/test_protocol.py
index f41b9565..34e4ef50 100644
--- a/test/http/http2/test_protocol.py
+++ b/test/http/http2/test_protocol.py
@@ -257,7 +257,7 @@ class TestReadResponse(tservers.ServerTestBase):
assert resp.status_code == "200"
assert resp.msg == ""
assert resp.headers == {':status': '200', 'etag': 'foobar'}
- assert resp.content == b'foobar'
+ assert resp.body == b'foobar'
class TestReadEmptyResponse(tservers.ServerTestBase):
@@ -283,7 +283,7 @@ class TestReadEmptyResponse(tservers.ServerTestBase):
assert resp.status_code == "200"
assert resp.msg == ""
assert resp.headers == {':status': '200', 'etag': 'foobar'}
- assert resp.content == b''
+ assert resp.body == b''
class TestReadRequest(tservers.ServerTestBase):
@@ -308,7 +308,7 @@ class TestReadRequest(tservers.ServerTestBase):
assert resp.stream_id
assert resp.headers == {':method': 'GET', ':path': '/', ':scheme': 'https'}
- assert resp.content == b'foobar'
+ assert resp.body == b'foobar'
class TestCreateResponse():