'Helper method to configure the partition and group mapping for the given xblock.'

def _setup_group_access(self, xblock, partition_id, group_ids):

    xblock.group_access = {partition_id: group_ids}
    self.store.update_item(xblock, self.user.id)
