def create_test_data(n):
  ret = []
  for i in xrange(n):
    params = dict()
    for key in PRODUCT_PARAMS.keys():
      if key == 'category':
        # untouched
        params[key] = PRODUCT_PARAMS[key]
      else:
        params[key] = _add_mark(PRODUCT_PARAMS[key], i)
    ret.append(params)
  return ret
Create specified number of test data with marks added to its values.
dataset/ETHPy150Open GoogleCloudPlatform/appengine-search-python-java/product_search_python/tests/test_search.py/create_test_data