'Create a cohort for testing.'

def _create_cohort(self, course_id, cohort_name, assignment_type):

    cohort = CohortFactory(course_id=course_id, name=cohort_name)
    CourseCohortFactory(course_user_group=cohort, assignment_type=assignment_type)
    return cohort
