def _discussion_disabled_course_for(user):
 course_with_disabled_forums = CourseFactory.create()
 CourseEnrollmentFactory.create(user=user, course_id=course_with_disabled_forums.id)
 _remove_discussion_tab(course_with_disabled_forums, user.id)
 return course_with_disabled_forums

def _discussion_disabled_course_for ( user ) : course_with_disabled_forums = CourseFactory . create ( ) CourseEnrollmentFactory . create ( user = user , course_id = course_with_disabled_forums . id ) _remove_discussion_tab ( course_with_disabled_forums , user . id ) return course_with_disabled_forums
create and return a course with discussions disabled .