def test_controlE(self):
        """
        CTRL-E can be used as END - setting cursor to end of current
        line buffer.
        """
        self._testwrite(b'rint "hello' + b'\x01' + b'p' + b'\x05' + b'"')
        d = self.recvlineClient.expect(b'print "hello"')
        def cb(ignore):
            self._assertBuffer([b'>>> print "hello"'])
        return d.addCallback(cb)

        CTRL-E can be used as END - setting cursor to end of current
        line buffer.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_manhole.py