diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-10-27 17:40:22 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-10-27 17:40:22 +1300 |
commit | ac5aacce443f619bce2f31a1c016904da1930510 (patch) | |
tree | abf8992952a958857ea5dd8231520675e0579b63 /test/test_pathod.py | |
parent | 06864e5a1b61eaa6684dc8b1a6bdc11ae7987720 (diff) | |
download | mitmproxy-ac5aacce443f619bce2f31a1c016904da1930510.tar.gz mitmproxy-ac5aacce443f619bce2f31a1c016904da1930510.tar.bz2 mitmproxy-ac5aacce443f619bce2f31a1c016904da1930510.zip |
Remove check argument to serve() methods.
Refactoring means we can now do this without a callback.
Also introduce the maximum_length method that estimates the max possible
message length.
Diffstat (limited to 'test/test_pathod.py')
-rw-r--r-- | test/test_pathod.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py index 7bbb5545..195c7333 100644 --- a/test/test_pathod.py +++ b/test/test_pathod.py @@ -58,7 +58,7 @@ class TestNohang(tutils.DaemonTests): r = self.get("200:p0,0") assert r.status_code == 800 l = self.d.last_log() - assert "Pauses have been disabled" in l["response"]["error"] + assert "Pauses have been disabled" in l["msg"] class TestHexdump(tutils.DaemonTests): @@ -77,7 +77,7 @@ class CommonTests(tutils.DaemonTests): r = self.get("200:b@1g") assert r.status_code == 800 l = self.d.last_log() - assert "too large" in l["response"]["error"] + assert "too large" in l["msg"] def test_preline(self): v = self.pathoc(r"get:'/p/200':i0,'\r\n'") |