'Set up a cohorted course'

def setUp(self):

    super(CohortConfigurationTest, self).setUp()
    self.manual_cohort_name = 'ManualCohort1'
    self.auto_cohort_name = 'AutoCohort1'
    self.course_fixture = CourseFixture(**self.course_info).install()
    self.setup_cohort_config(self.course_fixture, auto_cohort_groups=[self.auto_cohort_name])
    self.manual_cohort_id = self.add_manual_cohort(self.course_fixture, self.manual_cohort_name)
    (self.student_name, self.student_email) = self._generate_unique_user_data()
    self.student_id = AutoAuthPage(self.browser, username=self.student_name, email=self.student_email, course_id=self.course_id, staff=False).visit().get_user_id()
    self.add_user_to_cohort(self.course_fixture, self.student_name, self.manual_cohort_id)
    (self.other_student_name, self.other_student_email) = self._generate_unique_user_data()
    self.other_student_id = AutoAuthPage(self.browser, username=self.other_student_name, email=self.other_student_email, course_id=self.course_id, staff=False).visit().get_user_id()
    (self.instructor_name, self.instructor_email) = self._generate_unique_user_data()
    self.instructor_id = AutoAuthPage(self.browser, username=self.instructor_name, email=self.instructor_email, course_id=self.course_id, staff=True).visit().get_user_id()
    self.instructor_dashboard_page = InstructorDashboardPage(self.browser, self.course_id)
    self.instructor_dashboard_page.visit()
    self.cohort_management_page = self.instructor_dashboard_page.select_cohort_management()
