Lines Matching refs:check_wrap
35 def check_wrap(self, text, width, expect, **kwargs): member in BaseTestCase
56 self.check_wrap(text, 12,
63 self.check_wrap(text, 42,
66 self.check_wrap(text, 80, [text])
70 self.check_wrap("", 6, [])
71 self.check_wrap("", 6, [], drop_whitespace=False)
75 self.check_wrap("", 6, [], initial_indent="++")
76 self.check_wrap("", 6, [], initial_indent="++", drop_whitespace=False)
104 self.check_wrap(text, 80, expect)
108 self.check_wrap(text, 80, expect, tabsize=4)
157 self.check_wrap(text, 20, ["This is a short",
159 self.check_wrap(text, 40, ["This is a short paragraph."])
167 self.check_wrap(text, 30, ["This is a short line."])
168 self.check_wrap(text, 30, ["(1) This is a short line."],
178 self.check_wrap(text, 40,
181 self.check_wrap(text, 41,
184 self.check_wrap(text, 42,
190 self.check_wrap(text, 1, expect, break_long_words=False)
203 self.check_wrap(text, 30, ['Python 1.0.0 was released on',
206 self.check_wrap(text, 40, ['Python 1.0.0 was released on 1994-01-26.',
208 self.check_wrap(text, 1, text.split(), break_long_words=False)
211 self.check_wrap(text, 25, ["I do all my shopping at",
213 self.check_wrap(text, 27, ["I do all my shopping at",
215 self.check_wrap(text, 29, ["I do all my shopping at 7-11."])
216 self.check_wrap(text, 1, text.split(), break_long_words=False)
221 self.check_wrap(text, 25,
227 self.check_wrap(text, 29,
232 self.check_wrap(text, 30, expect)
233 self.check_wrap(text, 35, expect)
234 self.check_wrap(text, 36,
243 self.check_wrap(text, 15, expect)
244 self.check_wrap(text, 16, expect)
248 self.check_wrap(text, 17, expect)
249 self.check_wrap(text, 19, expect)
252 self.check_wrap(text, 29, expect)
253 self.check_wrap(text, 31, expect)
256 self.check_wrap(text, 32, expect)
257 self.check_wrap(text, 35, expect)
278 self.check_wrap(text, 20,
283 self.check_wrap(text, 21,
289 self.check_wrap(text, 32, expect)
290 self.check_wrap(text, 34, expect)
291 self.check_wrap(text, 35, expect)
292 self.check_wrap(text, 38, expect)
295 self.check_wrap(text, 39, expect)
296 self.check_wrap(text, 41, expect)
299 self.check_wrap(text, 42, expect)
362 self.check_wrap(text, 10,
369 self.check_wrap(" ", 6, [" "], drop_whitespace=False)
374 self.check_wrap(" ", 6, [" "], drop_whitespace=False,
379 self.check_wrap(" ", 6, [])
387 self.check_wrap(text, 50,
389 self.check_wrap(text, 30,
397 self.check_wrap(text, 6, ["abcd", " ", "efgh"],
399 self.check_wrap(text, 6, ["abcd", "efgh"])
405 self.check_wrap(" ", 6, [], initial_indent="++")
411 self.check_wrap("abcd efgh", 6, [" abcd", " efgh"],
428 self.check_wrap(text, 10, ["yaba daba-", "doo"],
430 self.check_wrap(text, 10, ["yaba", "daba-doo"],
441 self.check_wrap(text, 13, ["Die", "Empf\xe4nger-", "Auswahl"])
445 self.check_wrap(text, 7, ["aa \xe4\xe4-", "\xe4\xe4"])
450 self.check_wrap(text, 20,
456 self.check_wrap(text, 20,
466 self.check_wrap(text, 20,
472 self.check_wrap(text, 20,
483 self.check_wrap(self.text, 12,
486 self.check_wrap(self.text, 12,
489 self.check_wrap(self.text, 12,
493 self.check_wrap(self.text, 13,
497 self.check_wrap(self.text, 80, [self.text], max_lines=1)
498 self.check_wrap(self.text, 12,
509 self.check_wrap(self.text, 12,
516 self.check_wrap(self.text, 6,
521 self.check_wrap(self.text + ' ' * 10, 12,
531 self.check_wrap(self.text, 12,
535 self.check_wrap(self.text, 12,
547 self.check_wrap(self.text, 16,
554 self.check_wrap(self.text, 16,
560 self.check_wrap(self.text, 80, [self.text], placeholder='.' * 1000)
568 self.check_wrap(text, 12,
585 self.check_wrap(self.text, 30,
590 self.check_wrap(self.text, 50,
596 self.check_wrap('-'*10+'hello', 10,
607 self.check_wrap(self.text, 12,
635 self.check_wrap(self.text, 12,