#NEWLINE# def testControlC( self ) : #NEWLINE# #INDENT# done = self . recvlineClient . expect ( 'done' ) #NEWLINE# self . _testwrite ( ( ( 'cancelled line' + manhole . CTRL_C ) + 'done' ) ) #NEWLINE# def finished( ign ) : #NEWLINE# #INDENT# self . _assertBuffer ( [ '>>> cancelled line' , 'KeyboardInterrupt' , '>>> done' ] ) #NEWLINE# #UNINDENT# return done . addCallback ( done )