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