'Verify that auto cohorts are included in the response.'

def test_auto_cohorts(self):

    config_course_cohorts(self.course, is_cohorted=True, auto_cohorts=['AutoGroup1', 'AutoGroup2'])
    self._create_cohorts()
    actual_cohorts = self.get_handler(self.course)
    auto_cohort_1 = get_cohort_by_name(self.course.id, 'AutoGroup1')
    auto_cohort_2 = get_cohort_by_name(self.course.id, 'AutoGroup2')
    expected_cohorts = [CohortHandlerTestCase.create_expected_cohort(auto_cohort_1, 0, CourseCohort.RANDOM), CohortHandlerTestCase.create_expected_cohort(auto_cohort_2, 0, CourseCohort.RANDOM), CohortHandlerTestCase.create_expected_cohort(self.cohort1, 3, CourseCohort.MANUAL), CohortHandlerTestCase.create_expected_cohort(self.cohort2, 2, CourseCohort.MANUAL), CohortHandlerTestCase.create_expected_cohort(self.cohort3, 2, CourseCohort.MANUAL), CohortHandlerTestCase.create_expected_cohort(self.cohort4, 2, CourseCohort.RANDOM)]
    self.verify_lists_expected_cohorts(expected_cohorts, actual_cohorts)
