def write_test_data(output_dir):
 test_data = get_test_data()
 for (k, v) in test_data.items():
  f = open(join(output_dir, k), 'w')
  f.write('\n'.join(v))
  f.close()

def write_test_data ( output_dir ) : test_data = get_test_data ( ) for ( k , v ) in test_data . items ( ) : f = open ( join ( output_dir , k ) , 'w' ) f . write ( '\n' . join ( v ) ) f . close ( )
write small test data set files to output_dir this function is convenient for interactive testing .