

def testSynchronous(self):
    self.term.write('hello world')
    result = []
    d = self.term.expect('hello world')
    d.addCallback(result.append)
    self.failUnless(result)
    self.assertEqual(result[0].group(), 'hello world')

dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/conch/test/test_helper.py ExpectTestCase.testSynchronous/original