def _is_invited(self, group, user): assert group.is_invited(user) assert group in qon.base.get_group_database().users_invitations(user)
def _is_member(self, group, user): assert group.is_member(user) assert not group.is_invited(user) assert user in group.get_member_list() assert user.is_member_of_group(qon.base.get_usergroup_database().get_usergroup(group.get_user_id()))