Exemple #1
0
    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)
Exemple #2
0
    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)
Exemple #3
0
    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)
Exemple #4
0
    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)
Exemple #5
0
 def word(self):
     """Random text with 1 word."""
     return loremipsum.words(1, common=False)
Exemple #6
0
 def word(self):
     """Random text with 1 word."""
     return loremipsum.words(1, common=False)