def cursorAtSpaceEnd(block):
            cursor = QTextCursor(block)
            cursor.setPosition(block.position() + len(blockIndentation(block)))
            return cursor
def wrapper%(signature)s:
    with ldap3mock:
        return func%(funcargs)s