'Test that it is possible to update the user_partition_id/group_id of an existing cohort.'

def test_update_cohort_group_id(self):

    self._create_cohorts()
    self.assertEqual((None, None), get_group_info_for_cohort(self.cohort1))
    data = {'name': self.cohort1.name, 'assignment_type': CourseCohort.MANUAL, 'group_id': 2, 'user_partition_id': 3}
    response_dict = self.put_handler(self.course, self.cohort1, data=data)
    self.assertEqual((2, 3), get_group_info_for_cohort(self.cohort1))
    self.assertEqual(2, response_dict.get('group_id'))
    self.assertEqual(3, response_dict.get('user_partition_id'))
    self.assertEqual(self.cohort1.name, response_dict.get('name'))
