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

def test_create_new_cohort_missing_user_partition_id(self):

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