def get_test_data_fps():
 test_data = get_test_data()
 temp_dir = get_qiime_temp_dir()
 result = {}
 for (k, v) in test_data.items():
  f = NamedTemporaryFile(prefix=k, dir=temp_dir)
  f.write('\n'.join(v))
  f.flush()
  result[k] = (f.name, f)
 return result

def get_test_data_fps ( ) : test_data = get_test_data ( ) temp_dir = get_qiime_temp_dir ( ) result = { } for ( k , v ) in test_data . items ( ) : f = NamedTemporaryFile ( prefix = k , dir = temp_dir ) f . write ( '\n' . join ( v ) ) f . flush ( ) result [ k ] = ( f . name , f ) return result
returns test data as dict of filepaths .