def long_sentence(self): """Random sentence with text longer than 150 characters.""" sentence = loremipsum.sentence() while len(sentence) <= 150: sentence = loremipsum.sentence() return sentence
def short_sentence(self): """Random sentence with text shorter than 100 characters.""" sentence = loremipsum.sentence() while len(sentence) >= 100: sentence = loremipsum.sentence() return sentence