def test_resetBuffer(self):
        """
        L{ManholeInterpreter.resetBuffer} should empty the input buffer.
        """
        interpreter = manhole.ManholeInterpreter(None)
        interpreter.buffer.extend(["1", "2"])
        interpreter.resetBuffer()
        self.assertFalse(interpreter.buffer)

        L{ManholeInterpreter.resetBuffer} should empty the input buffer.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_manhole.py