'Sets up the course to use cohorting with the given list of auto_cohort_groups.
If auto_cohort_groups is None, no auto cohorts are set.'

def setup_cohort_config(self, course_fixture, auto_cohort_groups=None):

    course_fixture._update_xblock(course_fixture._course_location, {'metadata': {u'cohort_config': {'auto_cohort_groups': (auto_cohort_groups or []), 'cohorted_discussions': [], 'cohorted': True}}})
