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)
Returns the module name corresponding to a filename.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/conch/test/test_manhole.py/ManholeProtocolTests.test_interruptResetsInterpreterBuffer--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/runtime/cgi.py/_FileToModuleName