'Tests that get_course_cohorts returns all cohorts, including auto cohorts.'

def test_get_course_cohorts(self):

    course = modulestore().get_course(self.toy_course_key)
    config_course_cohorts(course, is_cohorted=True, auto_cohorts=['AutoGroup1', 'AutoGroup2'])
    CohortFactory(course_id=course.id, name='ManualCohort')
    CohortFactory(course_id=course.id, name='ManualCohort2')
    cohort_set = {c.name for c in cohorts.get_course_cohorts(course)}
    self.assertEqual(cohort_set, {'AutoGroup1', 'AutoGroup2', 'ManualCohort', 'ManualCohort2'})
