'Verify that we cannot update a cohort with a group_id if the user_partition_id is not also specified.'

def test_update_cohort_missing_user_partition_id(self):

    self._create_cohorts()
    data = {'name': self.cohort1.name, 'assignment_type': CourseCohort.RANDOM, 'group_id': 2}
    response_dict = self.put_handler(self.course, self.cohort1, data=data, expected_response_code=400)
    self.assertEqual('If    group_id    is    specified,    user_partition_id    must    also    be    specified.', response_dict.get('error'))
