'expect(expected, [timeout])
Read until the expected string has been seen, or a timeout is
hit (default is no timeout); may block.'

def test_expect_A(self):

    want = [('x' * 10), 'match', ('y' * 10), EOF_sigil]
    self.dataq.put(want)
    telnet = telnetlib.Telnet(HOST, self.port)
    self.dataq.join()
    (_, _, data) = telnet.expect(['match'])
    self.assertEqual(data, ''.join(want[:(-2)]))
