def process_parameterized_function(name, func_obj, build_data):
    to_remove = []
    to_add = []

    for subtest_name, params in six.iteritems(build_data):
        # Build new test function
        func_name = '{0}_{1}'.format(name, subtest_name)
        new_func = construct_new_test_function(func_obj, func_name, params)

        # Mark the new function as needed to be added to the class
        to_add.append((func_name, new_func))

        # Mark key for removal
        to_remove.append(name)

    return to_remove, to_add
Build lists of functions to add and remove to a test case.
dataset/ETHPy150Open openstack/python-barbicanclient/functionaltests/utils.py/process_parameterized_function