'Enables cohorting for the specified course fixture.'

def enable_cohorting(self, course_fixture):

    url = (((LMS_BASE_URL + '/courses/') + course_fixture._course_key) + '/cohorts/settings')
    data = json.dumps({'is_cohorted': True})
    response = course_fixture.session.patch(url, data=data, headers=course_fixture.headers)
    self.assertTrue(response.ok, 'Failed    to    enable    cohorts')
