gcb_web_auth/groupmanager.py
def user_belongs_to_group(group_manager_connection, duke_unique_id, group_name):
    """
    Returns True if the user associated with duke_unique_id is in a particular GroupManager group
    :param group_manager_connection: GroupManagerConnection: settings used to talk to group manager
    :param duke_unique_id: str: unique id (number) of the user we want to check
    :param group_name: str: name of the group to check (eg. 'duke:group-manager:roles:bespin-users')
    :return: boolean: True if the user belongs to that agroup
    """
    return group_name in get_users_group_names(group_manager_connection, duke_unique_id)

    Returns True if the user associated with duke_unique_id is in a particular GroupManager group
    :param group_manager_connection: GroupManagerConnection: settings used to talk to group manager
    :param duke_unique_id: str: unique id (number) of the user we want to check
    :param group_name: str: name of the group to check (eg. 'duke:group-manager:roles:bespin-users')
    :return: boolean: True if the user belongs to that agroup
    
Returns True if the user associated with duke_unique_id is in a particular GroupManager group
Returns True if the user associated with duke_unique_id is in a particular GroupManager group
def user_belongs_to_group(group_manager_connection, duke_unique_id, group_name):
    return group_name in get_users_group_names(group_manager_connection, duke_unique_id)
def user_belongs_to_group ( group_manager_connection , duke_unique_id , group_name ) : return group_name in get_users_group_names ( group_manager_connection , duke_unique_id )
Returns True if the user associated with duke_unique_id is in a particular GroupManager group
Returns True if the user associated with duke_unique_id is in a particular GroupManager group
"""
    Returns True if the user associated with duke_unique_id is in a particular GroupManager group
    :param group_manager_connection: GroupManagerConnection: settings used to talk to group manager
    :param duke_unique_id: str: unique id (number) of the user we want to check
    :param group_name: str: name of the group to check (eg. 'duke:group-manager:roles:bespin-users')
    :return: boolean: True if the user belongs to that agroup
    """
True if the user belongs to that agroup
True if the user belongs to that agroup
group_manager_connection
settings used to talk to group manager
settings used to talk to group manager
duke_unique_id
unique id (number) of the user we want to check
unique id ( number ) of the user we want to check
group_name
name of the group to check
name of the group to check