• Home
  • Raw
  • Download

Lines Matching refs:check_wrap

36     def check_wrap(self, text, width, expect, **kwargs):  member in BaseTestCase
57 self.check_wrap(text, 12,
64 self.check_wrap(text, 42,
67 self.check_wrap(text, 80, [text])
71 self.check_wrap("", 6, [])
72 self.check_wrap("", 6, [], drop_whitespace=False)
76 self.check_wrap("", 6, [], initial_indent="++")
77 self.check_wrap("", 6, [], initial_indent="++", drop_whitespace=False)
150 self.check_wrap(text, 20, ["This is a short",
152 self.check_wrap(text, 40, ["This is a short paragraph."])
160 self.check_wrap(text, 30, ["This is a short line."])
161 self.check_wrap(text, 30, ["(1) This is a short line."],
171 self.check_wrap(text, 40,
174 self.check_wrap(text, 41,
177 self.check_wrap(text, 42,
186 self.check_wrap(text, 35, ['Python 1.0.0 was released on',
189 self.check_wrap(text, 40, ['Python 1.0.0 was released on 1994-01-26.',
193 self.check_wrap(text, 25, ["I do all my shopping at",
195 self.check_wrap(text, 27, ["I do all my shopping at",
197 self.check_wrap(text, 29, ["I do all my shopping at 7-11."])
202 self.check_wrap(text, 25,
208 self.check_wrap(text, 29,
213 self.check_wrap(text, 30, expect)
214 self.check_wrap(text, 35, expect)
215 self.check_wrap(text, 36,
224 self.check_wrap(text, 15, expect)
225 self.check_wrap(text, 16, expect)
229 self.check_wrap(text, 17, expect)
230 self.check_wrap(text, 19, expect)
233 self.check_wrap(text, 29, expect)
234 self.check_wrap(text, 31, expect)
237 self.check_wrap(text, 32, expect)
238 self.check_wrap(text, 35, expect)
259 self.check_wrap(text, 20,
264 self.check_wrap(text, 21,
270 self.check_wrap(text, 32, expect)
271 self.check_wrap(text, 34, expect)
272 self.check_wrap(text, 35, expect)
273 self.check_wrap(text, 38, expect)
276 self.check_wrap(text, 39, expect)
277 self.check_wrap(text, 41, expect)
280 self.check_wrap(text, 42, expect)
339 self.check_wrap(text, 10,
346 self.check_wrap(" ", 6, [" "], drop_whitespace=False)
351 self.check_wrap(" ", 6, [" "], drop_whitespace=False,
356 self.check_wrap(" ", 6, [])
364 self.check_wrap(text, 50,
366 self.check_wrap(text, 30,
374 self.check_wrap(text, 6, ["abcd", " ", "efgh"],
376 self.check_wrap(text, 6, ["abcd", "efgh"])
382 self.check_wrap(" ", 6, [], initial_indent="++")
388 self.check_wrap("abcd efgh", 6, [" abcd", " efgh"],
397 self.check_wrap(text, 50, [u"Hello there, how are you today?"])
398 self.check_wrap(text, 20, [u"Hello there, how are", "you today?"])
407 self.check_wrap(text, 13, [u"Die", u"Empf\xe4nger-", u"Auswahl"])
411 self.check_wrap(text, 7, [u"aa \xe4\xe4-", u"\xe4\xe4"])
427 self.check_wrap(text, 10, ["yaba daba-", "doo"],
429 self.check_wrap(text, 10, ["yaba", "daba-doo"],
450 self.check_wrap(self.text, 30,
455 self.check_wrap(self.text, 50,
461 self.check_wrap('-'*10+'hello', 10,
472 self.check_wrap(self.text, 12,