'Utility to create cohort -> partition group assignments in the database.'

def _link_cohort_partition_group(self, cohort, partition_id, group_id):

    link = CourseUserGroupPartitionGroup(course_user_group=cohort, partition_id=partition_id, group_id=group_id)
    link.save()
    return link
