'This helper method builds up the user_partition values that will
be passed to the Studio editor'

@staticmethod
def build_partition_values(all_user_partitions, selected_user_partition):

    SplitTestFields.user_partition_values = []
    if (not selected_user_partition):
        SplitTestFields.user_partition_values.append(SplitTestFields.no_partition_selected)
    for user_partition in get_split_user_partitions(all_user_partitions):
        SplitTestFields.user_partition_values.append({'display_name': user_partition.name, 'value': user_partition.id})
    return SplitTestFields.user_partition_values
