'L{manhole.Manhole.handle_INT} should cause the interpreter input buffer
to be reset.'

def test_interruptResetsInterpreterBuffer(self):

    transport = StringTransport()
    terminal = insults.ServerProtocol(manhole.Manhole)
    terminal.makeConnection(transport)
    protocol = terminal.terminalProtocol
    interpreter = protocol.interpreter
    interpreter.buffer.extend(['1', '2'])
    protocol.handle_INT()
    self.assertFalse(interpreter.buffer)
