#NEWLINE# def test_interruptDuringContinuation( self ) : #NEWLINE# #INDENT# '\n        Sending ^C to Manhole while in a state where more input is required to\n        complete a statement should discard the entire ongoing statement and\n        reset the input prompt to the non-continuation prompt.\n        ' #NEWLINE# continuing = self . recvlineClient . expect ( 'things' ) #NEWLINE# self . _testwrite ( '(\nthings' ) #NEWLINE# def gotContinuation( ignored ) : #NEWLINE# #INDENT# self . _assertBuffer ( [ '>>> (' , '... things' ] ) #NEWLINE# interrupted = self . recvlineClient . expect ( '>>> ' ) #NEWLINE# self . _testwrite ( manhole . CTRL_C ) #NEWLINE# return interrupted #NEWLINE# #UNINDENT# continuing . addCallback ( gotContinuation ) #NEWLINE# def gotInterruption( ignored ) : #NEWLINE# #INDENT# self . _assertBuffer ( [ '>>> (' , '... things' , 'KeyboardInterrupt' , '>>> ' ] ) #NEWLINE# #UNINDENT# continuing . addCallback ( gotContinuation ) #NEWLINE# return continuing