(self)
| 1083 | self.check(result, expect) |
| 1084 | |
| 1085 | def test_simple(self): |
| 1086 | # Simple case: just words, spaces, and a bit of punctuation |
| 1087 | text = "Hello there, how are you this fine day? I'm glad to hear it!" |
| 1088 | |
| 1089 | self.check_shorten(text, 18, "Hello there, [...]") |
| 1090 | self.check_shorten(text, len(text), text) |
| 1091 | self.check_shorten(text, len(text) - 1, |
| 1092 | "Hello there, how are you this fine day? " |
| 1093 | "I'm glad to [...]") |
| 1094 | |
| 1095 | def test_placeholder(self): |
| 1096 | text = "Hello there, how are you this fine day? I'm glad to hear it!" |
nothing calls this directly
no test coverage detected