diff options
author | Rouli <rouli.net@gmail.com> | 2013-01-17 17:33:29 +0200 |
---|---|---|
committer | Rouli <rouli.net@gmail.com> | 2013-01-17 17:33:29 +0200 |
commit | 446f9f0a0fc12159ba663d3b8bdc8f1206a197c7 (patch) | |
tree | 9cb474c3154fb4146cce41e40e25b4a8e3e57d46 /test/test_dump.py | |
parent | 20fa6a30839500207d7d509fe3b8697dbd22a33e (diff) | |
parent | 280dd94198931bcd819848a70d68f6f5d9f3270b (diff) | |
download | mitmproxy-446f9f0a0fc12159ba663d3b8bdc8f1206a197c7.tar.gz mitmproxy-446f9f0a0fc12159ba663d3b8bdc8f1206a197c7.tar.bz2 mitmproxy-446f9f0a0fc12159ba663d3b8bdc8f1206a197c7.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'test/test_dump.py')
-rw-r--r-- | test/test_dump.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_dump.py b/test/test_dump.py index 0337bb33..e1241e29 100644 --- a/test/test_dump.py +++ b/test/test_dump.py @@ -48,6 +48,15 @@ class TestDumpMaster: fw.add(t) f.close() + def test_error(self): + cs = StringIO() + o = dump.Options(verbosity=1) + m = dump.DumpMaster(None, o, None, outfile=cs) + f = tutils.tflow_err() + m.handle_request(f.request) + assert m.handle_error(f.error) + assert "error" in cs.getvalue() + def test_replay(self): cs = StringIO() |