'Test that it is possible to update the name of an existing manual cohort.'

def test_update_manual_cohort_name(self):

    self._create_cohorts()
    updated_name = (self.cohort1.name + '_updated')
    data = {'name': updated_name, 'assignment_type': CourseCohort.MANUAL}
    response_dict = self.put_handler(self.course, self.cohort1, data=data)
    self.assertEqual(updated_name, get_cohort_by_id(self.course.id, self.cohort1.id).name)
    self.assertEqual(updated_name, response_dict.get('name'))
    self.assertEqual(CourseCohort.MANUAL, response_dict.get('assignment_type'))
