

def create_test_data(n):
    'Create specified number of test data with marks added to its values.'
    ret = []
    for i in xrange(n):
        params = dict()
        for key in PRODUCT_PARAMS.keys():
            if (key == 'category'):
                params[key] = PRODUCT_PARAMS[key]
            else:
                params[key] = _add_mark(PRODUCT_PARAMS[key], i)
        ret.append(params)
    return ret

dataset/ETHPy150Open GoogleCloudPlatform/appengine-search-python-java/product_search_python/tests/test_search.py create_test_data/original