def random_unicode(length=20):
 def get_char():
  return six.unichr(random.randint(32, 1000))
 chars = u''.join([get_char() for ii in six.moves.range(length)])
 return _join_chars(chars, length)

def random_unicode ( length = 20 ) : def get_char ( ) : return six . unichr ( random . randint ( 32 , 1000 ) ) chars = u'' . join ( [ get_char ( ) for ii in six . moves . range ( length ) ] ) return _join_chars ( chars , length )
generates a random name; useful for testing .