l.s.t.t.TruncateTextTest(unittest.TestCase) : class documentation

Part of lp.services.tests.test_helpers View In Hierarchy

No class docstring
Method test_leaves_shorter_text_unchanged When the text is shorter than the length, nothing is truncated.
Method test_single_very_long_word When the first word is longer than the truncation then that word is
Method test_words_arent_split When the truncation would leave only half of the last word, then
Method test_whitespace_is_preserved The whitespace between words is preserved in the truncated text.
def test_leaves_shorter_text_unchanged(self):
When the text is shorter than the length, nothing is truncated.
def test_single_very_long_word(self):
When the first word is longer than the truncation then that word is included.
def test_words_arent_split(self):
When the truncation would leave only half of the last word, then the whole word is removed.
def test_whitespace_is_preserved(self):
The whitespace between words is preserved in the truncated text.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.