diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-07-03 02:45:12 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-07-03 02:45:12 +0200 |
commit | 880c66fe48c5a6bb4779a8149a3551f007ff5b09 (patch) | |
tree | 8ffe1263597d7f2261cdee123bb5cce4f5d7de11 /test/test_socks.py | |
parent | 9aaf10120d08e12e7aa82fc2184ca7faa35349c3 (diff) | |
download | mitmproxy-880c66fe48c5a6bb4779a8149a3551f007ff5b09.tar.gz mitmproxy-880c66fe48c5a6bb4779a8149a3551f007ff5b09.tar.bz2 mitmproxy-880c66fe48c5a6bb4779a8149a3551f007ff5b09.zip |
socks: optionally fail early
Diffstat (limited to 'test/test_socks.py')
-rw-r--r-- | test/test_socks.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_socks.py b/test/test_socks.py index eb5d55f9..1b6c2a32 100644 --- a/test/test_socks.py +++ b/test/test_socks.py @@ -44,6 +44,9 @@ def test_client_greeting_assert_socks5(): else: assert False + raw = tutils.treader("XX") + tutils.raises(socks.SocksError, socks.ClientGreeting.from_file, raw, fail_early=True) + def test_server_greeting(): raw = tutils.treader("\x05\x02") |