Zap a left-over test

This commit is contained in:
Aldo Cortesi 2015-05-05 10:52:50 +12:00
parent f2bc58cdd2
commit dabb356c15

View File

@ -1,6 +1,5 @@
from cStringIO import StringIO from cStringIO import StringIO
import socket import socket
import mock
from nose.plugins.skip import SkipTest from nose.plugins.skip import SkipTest
from netlib import socks, tcp from netlib import socks, tcp
import tutils import tutils
@ -83,14 +82,3 @@ def test_message_unknown_atyp():
m = socks.Message(5, 1, 0x02, tcp.Address(("example.com", 5050))) m = socks.Message(5, 1, 0x02, tcp.Address(("example.com", 5050)))
tutils.raises(socks.SocksError, m.to_file, StringIO()) 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)