diff options
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") |