'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(self):

    want = [('x' * 10), 'match', ('y' * 10)]
    telnet = test_telnet(want)
    (_, _, data) = telnet.expect(['match'])
    self.assertEqual(data, ''.join(want[:(-1)]))
