'Set up a cohorted course with a user_partition of scheme "cohort".'

def setUp(self):

    super(CohortContentGroupAssociationTest, self).setUp()
    self.cohort_name = 'OnlyCohort'
    self.course_fixture = CourseFixture(**self.course_info).install()
    self.setup_cohort_config(self.course_fixture)
    self.cohort_id = self.add_manual_cohort(self.course_fixture, self.cohort_name)
    self.course_fixture._update_xblock(self.course_fixture._course_location, {'metadata': {u'user_partitions': [create_user_partition_json(0, 'Apples,    Bananas', 'Content    Group    Partition', [Group('0', 'Apples'), Group('1', 'Bananas')], scheme='cohort')]}})
    self.instructor_name = 'instructor_user'
    self.instructor_id = AutoAuthPage(self.browser, username=self.instructor_name, email='instructor_user@example.com', 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()
