def email(self): """Random mail address.""" username = loremipsum.words(1, common=False) domain = loremipsum.words(1, common=False) termination = random.choice([u'.com', u'.org', u'.net']) return "{0}@{1}{2}".format(username, domain, termination)
def words(self, min_words=1, max_words=5): """Random text with 1 word.""" if min_words > max_words: raise ParameterError('min_words greater than max_words') words = random.randint(min_words, max_words) return loremipsum.words(words, common=False)
def word(self): """Random text with 1 word.""" return loremipsum.words(1, common=False)