MCPcopy Index your code
hub / github.com/python/cpython / test_drop_whitespace_false

Method test_drop_whitespace_false

Lib/test/test_textwrap.py:358–365  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

356 " ", "wubba"])
357
358 def test_drop_whitespace_false(self):
359 # Check that drop_whitespace=False preserves whitespace.
360 # SF patch #1581073
361 text = " This is a sentence with much whitespace."
362 self.check_wrap(text, 10,
363 [" This is a", " ", "sentence ",
364 "with ", "much white", "space."],
365 drop_whitespace=False)
366
367 def test_drop_whitespace_false_whitespace_only(self):
368 # Check that drop_whitespace=False preserves a whitespace-only string.

Callers

nothing calls this directly

Calls 1

check_wrapMethod · 0.80

Tested by

no test coverage detected