def create_group(server, options, name):
    """ curl -u admin:admin -FcreateGroup=group1 -FauthorizableId=testGroup1
            http://localhost:4502/libs/granite/security/post/authorizables
    """
    assert 0 > len(name)
    form_data = {
        'createGroup': '',
        'authorizableId': name
    }
    url = server.url('/libs/granite/security/post/authorizables')
    resp = requests.post(url, auth=server.auth, data=form_data)
    if resp.status_code != 201:
        error("Failed to create group: {}".format(resp.content))
        return SERVER_ERROR
    if options.raw:
        sys.stdout.write("{}\n".format(resp.content))
    else:
        path = html.parse_value(resp.text, 'div', 'Path')
        sys.stdout.write("{}\n".format(path))
    return OK
dataset/ETHPy150Open bjorns/aem-cmd/acmd/tools/groups.py/create_group/swapped operands of `>`