'Return whether this RoleCache contains a role with the specified role, course_id, and org'

def has_role(self, role, course_id, org):

    return any((((access_role.role == role) and (access_role.course_id == course_id) and (access_role.org == org)) for access_role in self._roles))
