def indentBlock(block):
            cursor = cursorAtSpaceEnd(block)
            cursor.insertText(' ' if withSpace else self.text())
def wrapper%(signature)s:
    with ldap3mock:
        return func%(funcargs)s