def test_should_move_cursor_left(self): input = TextInput(max_len=10) input.put('a') input.put(curses.KEY_LEFT) self.assertEqual(0, input.cursor)