diff options
| author | Aldo Cortesi <aldo@nullcube.com> | 2014-11-11 13:34:02 +1300 | 
|---|---|---|
| committer | Aldo Cortesi <aldo@nullcube.com> | 2014-11-11 13:34:02 +1300 | 
| commit | 27c7e9e9345bbc458e7efc4093c2074e19011d12 (patch) | |
| tree | ca4cd54b55cb1bf9cf25d35d6cf7d0b2044ad9f7 | |
| parent | 1a9ba295ce9653635169b7b2f4acacc35dadfe9b (diff) | |
| download | mitmproxy-27c7e9e9345bbc458e7efc4093c2074e19011d12.tar.gz mitmproxy-27c7e9e9345bbc458e7efc4093c2074e19011d12.tar.bz2 mitmproxy-27c7e9e9345bbc458e7efc4093c2074e19011d12.zip | |
Fix unit tests
| -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 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'") | 
