aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/test_socks.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/test/test_socks.py b/test/test_socks.py
index 6e522826..a596dedf 100644
--- a/test/test_socks.py
+++ b/test/test_socks.py
@@ -1,6 +1,5 @@
from cStringIO import StringIO
import socket
-import mock
from nose.plugins.skip import SkipTest
from netlib import socks, tcp
import tutils
@@ -83,14 +82,3 @@ def test_message_unknown_atyp():
m = socks.Message(5, 1, 0x02, tcp.Address(("example.com", 5050)))
tutils.raises(socks.SocksError, m.to_file, StringIO())
-
-def test_read():
- cs = StringIO("1234")
- assert socks._read(cs, 3) == "123"
-
- cs = StringIO("123")
- tutils.raises(socks.SocksError, socks._read, cs, 4)
-
- cs = mock.Mock()
- cs.read = mock.Mock(side_effect=socket.error)
- tutils.raises(socks.SocksError, socks._read, cs, 4)