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