def gen_email(name=None, domain=None, tlds=None):

    # Generate a new name if needed
    if name is None:
        name = gen_alpha(8)
    # Obtain a random domain if needed
    if domain is None:
        domain = gen_choice(SUBDOMAINS)
    # Obtain a random top level domain if needed
    if tlds is None:
        tlds = gen_choice(TLDS)

    email = u"{0}@{1}.{2}".format(name, domain, tlds)

    return _make_unicode(email)
Generates a random email address.
dataset/ETHPy150Open omaciel/fauxfactory/fauxfactory/__init__.py/gen_email