'Test that the group id is always included when requesting user profile information for a particular
course if the requester does not have discussion moderation privileges.'

def test_group_id_passed_to_user_profile_student(self, mock_request):

    def verify_group_id_always_present(profiled_user, pass_group_id):
        '\n                                                Helper    method    to    verify    that    group_id    is    always    present    for    student    in    course\n                                                (non-privileged    user).\n                                                '
        self._test_group_id_passed_to_user_profile(mock_request, True, self.student, profiled_user, self.student_cohort.id, pass_group_id)
    verify_group_id_always_present(profiled_user=self.student, pass_group_id=True)
    verify_group_id_always_present(profiled_user=self.student, pass_group_id=False)
    verify_group_id_always_present(profiled_user=self.moderator, pass_group_id=True)
    verify_group_id_always_present(profiled_user=self.moderator, pass_group_id=False)
