diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-01 12:10:32 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-01 12:10:32 +1200 |
commit | 90365e270e3e10779f6401e8f2ab48f243479ab2 (patch) | |
tree | bd7fdf4c4ae04cabea6b0b314e3a86f28e081789 /test | |
parent | 4e9d4e8ddd0274949e44e52063eabd298a57b66e (diff) | |
download | mitmproxy-90365e270e3e10779f6401e8f2ab48f243479ab2.tar.gz mitmproxy-90365e270e3e10779f6401e8f2ab48f243479ab2.tar.bz2 mitmproxy-90365e270e3e10779f6401e8f2ab48f243479ab2.zip |
Catch and handle SSL connection errors.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_dump.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_dump.py b/test/test_dump.py index f13245ed..5e2fcdc4 100644 --- a/test/test_dump.py +++ b/test/test_dump.py @@ -1,7 +1,7 @@ import os from cStringIO import StringIO import libpry -from libmproxy import dump, flow +from libmproxy import dump, flow, proxy import tutils def test_strfuncs(): @@ -20,6 +20,8 @@ class TestDumpMaster: def _cycle(self, m, content): req = tutils.treq() req.content = content + l = proxy.Log("connect") + m.handle_log(l) cc = req.client_conn cc.connection_error = "error" resp = tutils.tresp(req) |