'Sending ^C to Manhole while in a state where more input is required to
complete a statement should discard the entire ongoing statement and
reset the input prompt to the non-continuation prompt.'

def test_interruptDuringContinuation(self):

    continuing = self.recvlineClient.expect('things')
    self._testwrite('(\nthings')
    def gotContinuation(ignored):
        self._assertBuffer(['>>>    (', '...    things'])
        interrupted = self.recvlineClient.expect('>>>    ')
        self._testwrite(manhole.CTRL_C)
        return interrupted
    continuing.addCallback(gotContinuation)
    def gotInterruption(ignored):
        self._assertBuffer(['>>>    (', '...    things', 'KeyboardInterrupt', '>>>    '])
    continuing.addCallback(gotInterruption)
    return continuing
