def generate_string(cls, first_part): """Generate string in unicode format according object type and random data. """ special_chars = string_utils.SPECIAL return unicode("{first_part}_{uuid}_{rand_str}".format( first_part=first_part, uuid=random_uuid(), rand_str=random_string(size=len(special_chars), chars=special_chars)))
def generate_string(cls, first_part): """Generate string in unicode format according object type and random data. """ special_chars = string_utils.SPECIAL return unicode("{first_part}_{uuid}_{rand_str}".format( first_part=first_part, uuid=random_uuid(), rand_str=random_string(size=len(special_chars), chars=special_chars)))
def _generate_title(cls, obj_type): """Generate title according object type and random data.""" special_chars = string_utils.SPECIAL return "{obj_type}_{uuid}_{rand_str}".format( obj_type=obj_type, uuid=random_uuid(), rand_str=random_string(size=len(special_chars), chars=special_chars))
def generate_email(cls, domain=const_url.DEFAULT_EMAIL_DOMAIN): """Generate email in unicode format according to domain.""" return unicode("{mail_name}@{domain}".format(mail_name=random_uuid(), domain=domain))
def generate_slug(cls): """Generate slug in unicode format according str part and random data.""" return unicode("{slug}".format(slug=random_uuid()))
def generate_email(cls, domain=const_url.DEFAULT_EMAIL_DOMAIN): """Generate email in unicode format according to domain.""" return unicode("{mail_name}@{domain}".format( mail_name=random_uuid(), domain=domain))
def generate_slug(cls): """Generate slug in unicode format according str part and random data.""" return unicode("{slug}".format(slug=random_uuid()))
def _generate_email(cls, domain=const_url.DEFAULT_EMAIL_DOMAIN): """Generate email according domain.""" return "{mail_name}@{domain}".format( mail_name=random_uuid(), domain=domain)
def _generate_code(cls): """Generate code according str part and random data.""" return "{code}".format(code=random_uuid())
def _generate_title(cls, obj_type): """Generate title according object type and random data.""" special_chars = string_utils.SPECIAL return "{obj_type}_{uuid}_{rand_str}".format( obj_type=obj_type, uuid=random_uuid(), rand_str=random_string(size=len(special_chars), chars=special_chars))
def _generate_email(cls, domain=const_url.DEFAULT_EMAIL_DOMAIN): """Generate email according domain.""" return "{mail_name}@{domain}".format(mail_name=random_uuid(), domain=domain)
def _generate_code(cls): """Generate code according str part and random data.""" return "{code}".format(code=random_uuid())