diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-07-19 18:17:30 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-07-22 15:30:51 +0200 |
commit | d62dbee0f6cd47b4cad1ee7cc731b413600c0add (patch) | |
tree | 9957a5f77ca521cc6ddaafd36200a4b3ae000596 /test/http/http2/test_protocol.py | |
parent | 37a0cb858cda255bac8f06749a81859c82c5177f (diff) | |
download | mitmproxy-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.py | 6 |
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(): |