def test_should_not_move_cursor_after_right_boundary(self): input = TextInput(max_len=10) input.put('a') input.put(curses.KEY_RIGHT) self.assertEqual(1, input.cursor)