def write_test_files(test_dir, names=None):
 names = (names or range(10))
 for i in names:
  with open(os.path.join(test_dir, str(i)), u'wb') as out:
   out.write(u''.encode(u'UTF-8'))

def write_test_files ( test_dir , names = None ) : names = ( names or range ( 10 ) ) for i in names : with open ( os . path . join ( test_dir , str ( i ) ) , u'wb' ) as out : out . write ( u'' . encode ( u'UTF-8' ) )
write test files in test_dir using the names list .