'Test that get_students_features includes cohort info when the course is
cohorted, and does not when the course is not cohorted.'

@ddt.data(True, False)
def test_get_students_features_cohorted(self, is_cohorted):

    url = reverse('get_students_features', kwargs={'course_id': unicode(self.course.id)})
    set_course_cohorted(self.course.id, is_cohorted)
    response = self.client.post(url, {})
    res_json = json.loads(response.content)
    self.assertEqual(('cohort' in res_json['feature_names']), is_cohorted)
