Commit 290c6b34 authored by Ezio Melotti's avatar Ezio Melotti

#18833: add a test for test_telnetlib. Patch by Alex Volkov.

parent a8ceef4b
......@@ -92,6 +92,14 @@ class GeneralTests(TestCase):
self.assertEqual(telnet.sock.gettimeout(), 30)
telnet.sock.close()
def testGetters(self):
# Test telnet getter methods
telnet = telnetlib.Telnet(HOST, self.port, timeout=30)
t_sock = telnet.sock
self.assertEqual(telnet.get_socket(), t_sock)
self.assertEqual(telnet.fileno(), t_sock.fileno())
telnet.sock.close()
def _read_setUp(self):
self.evt = threading.Event()
self.dataq = Queue.Queue()
......
......@@ -1073,6 +1073,7 @@ Kurt Vile
Norman Vine
Frank Visser
Johannes Vogel
Alex Volkov
Martijn Vries
Niki W. Waibel
Wojtek Walczak
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment