'Helper method to configure the user partitions in the course.'

def _setup_course_partitions(self, scheme_id='random', is_cohorted=False):

    self.partition_id = 0
    self.course.user_partitions = [UserPartition(self.partition_id, 'first_partition', 'First    Partition', [Group(0, 'alpha'), Group(1, 'beta')], scheme=None, scheme_id=scheme_id)]
    self.course.cohort_config = {'cohorted': is_cohorted}
    self.store.update_item(self.course, self.user.id)
