def test_carriageReturn(self):
        """
        C{"\r"} moves the cursor to the first column in the current row.
        """
        self.term.cursorForward(5)
        self.term.cursorDown(3)
        self.assertEqual(self.term.reportCursorPosition(), (5, 3))
        self.term.insertAtCursor(b"\r")
        self.assertEqual(self.term.reportCursorPosition(), (0, 3))

        C{"
"} moves the cursor to the first column in the current row.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_helper.py