aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-03-14 11:21:32 +1100
committerAldo Cortesi <aldo@nullcube.com>2015-03-14 11:21:32 +1100
commit2e64d44aabc41ee93c0a682ce35b34a8716d3b8d (patch)
tree62ce244987b715d9e9261bea86bd0e8a6c69a77f /test
parent7caf0e4dce604ef7d76a8cff1e49d0414306dfb3 (diff)
parent295c8340a39f48652f77d74f3f65bfcec19a5c34 (diff)
downloadmitmproxy-2e64d44aabc41ee93c0a682ce35b34a8716d3b8d.tar.gz
mitmproxy-2e64d44aabc41ee93c0a682ce35b34a8716d3b8d.tar.bz2
mitmproxy-2e64d44aabc41ee93c0a682ce35b34a8716d3b8d.zip
Merge branch 'master' of ssh.github.com:mitmproxy/pathod
Diffstat (limited to 'test')
-rw-r--r--test/test_pathod.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py
index 158f3bda..8b37b545 100644
--- a/test/test_pathod.py
+++ b/test/test_pathod.py
@@ -153,7 +153,7 @@ class CommonTests(tutils.DaemonTests):
assert l["type"] == "error"
assert "foo" in l["msg"]
- def test_invalid_body(self):
+ def test_invalid_content_length(self):
tutils.raises(
http.HttpError,
self.pathoc,
@@ -161,7 +161,7 @@ class CommonTests(tutils.DaemonTests):
)
l = self.d.last_log()
assert l["type"] == "error"
- assert "Invalid" in l["msg"]
+ assert "Content-Length unknown" in l["msg"]
def test_invalid_headers(self):
tutils.raises(http.HttpError, self.pathoc, "get:/:h'\t'='foo'")