aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_protocol_http.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_protocol_http.py')
-rw-r--r--test/test_protocol_http.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_protocol_http.py b/test/test_protocol_http.py
index 5943b57f..8c843d73 100644
--- a/test/test_protocol_http.py
+++ b/test/test_protocol_http.py
@@ -48,14 +48,14 @@ class TestInvalidRequests(tservers.HTTPProxTest):
p = self.pathoc()
r = p.request("connect:'%s:%s'" % ("127.0.0.1", self.server2.port))
assert r.status_code == 400
- assert "Invalid HTTP request form" in r.body
+ assert "Invalid HTTP request form" in r.content
def test_relative_request(self):
p = self.pathoc_raw()
p.connect()
r = p.request("get:/p/200")
assert r.status_code == 400
- assert "Invalid HTTP request form" in r.body
+ assert "Invalid HTTP request form" in r.content
class TestExpectHeader(tservers.HTTPProxTest):
@@ -81,4 +81,4 @@ class TestExpectHeader(tservers.HTTPProxTest):
resp = http1.read_response(client.rfile, treq())
assert resp.status_code == 200
- client.finish() \ No newline at end of file
+ client.finish()