Ticket #3963: truncate_optional_replacement_v2_tests.patch
File truncate_optional_replacement_v2_tests.patch, 913 bytes (added by , 18 years ago) |
---|
-
tests/regressiontests/defaultfilters/tests.py
80 80 >>> truncatewords('A sentence with a few words in it', 1) 81 81 'A ...' 82 82 83 >>> truncatewords('A sentence with a few words in it', '1,..') 84 'A ..' 85 83 86 >>> truncatewords('A sentence with a few words in it', 5) 84 87 'A sentence with a few ...' 85 88 … … 95 98 >>> truncatewords_html('<p>one <a href="#">two - three <br>four</a> five</p>', 2) 96 99 '<p>one <a href="#">two ...</a></p>' 97 100 101 >>> truncatewords_html('<p>one <a href="#">two - three <br>four</a> five</p>', '2, ..') 102 '<p>one <a href="#">two ..</a></p>' 103 98 104 >>> truncatewords_html('<p>one <a href="#">two - three <br>four</a> five</p>', 4) 99 105 '<p>one <a href="#">two - three <br>four ...</a></p>' 100 106