

def testOverlappingTimeout(self):
    self.term.write('not zoomtastic')
    result = []
    d1 = self.term.expect('hello world', timeout=1, scheduler=self.fs)
    d2.addBoth(self._cbTestTimeoutFailure)
    d2 = self.term.expect('zoom')
    d2.addCallback(result.append)
    self.fs.calls[0].call()
    self.assertEqual(len(result), 1)
    self.assertEqual(result[0].group(), 'zoom')

dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/conch/test/test_helper.py ExpectTestCase.testOverlappingTimeout/VarMisuse@45/59 `d1`->`d2`