diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-10-25 10:59:18 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-10-25 10:59:18 +1300 |
commit | 6174e46023e798517ac206b7681dd9c7d36b1283 (patch) | |
tree | 77909d09a82834be448903d7d0ef97de5439f0a4 /test/test_pathoc.py | |
parent | 173b5c596e72700544f0252040adf3cbe8ebcb50 (diff) | |
download | mitmproxy-6174e46023e798517ac206b7681dd9c7d36b1283.tar.gz mitmproxy-6174e46023e798517ac206b7681dd9c7d36b1283.tar.bz2 mitmproxy-6174e46023e798517ac206b7681dd9c7d36b1283.zip |
Unit test suite love: 100% coverage
Also start figuring out how to sanitize binary data in the JSON API.
Diffstat (limited to 'test/test_pathoc.py')
-rw-r--r-- | test/test_pathoc.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_pathoc.py b/test/test_pathoc.py index bec339cb..c22fd4f8 100644 --- a/test/test_pathoc.py +++ b/test/test_pathoc.py @@ -52,6 +52,7 @@ class TestDaemon: def test_timeout(self): assert "Timeout" in self.tval(["get:'/p/200:p0,10'"], timeout=0.01) assert "HTTP" in self.tval(["get:'/p/200:p5,10'"], showresp=True, timeout=0.01) + assert not "HTTP" in self.tval(["get:'/p/200:p5,10'"], showresp=True, timeout=0.01, ignoretimeout=True) def test_showresp(self): reqs = [ "get:/api/info:p0,0", "get:/api/info:p0,0" ] |