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

Method test_wrap_short

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

Source from the content-addressed store, hash-verified

150 self.check(wrapper.wrap(text), expect)
151
152 def test_wrap_short(self):
153 # Wrapping to make short lines longer
154
155 text = "This is a\nshort paragraph."
156
157 self.check_wrap(text, 20, ["This is a short",
158 "paragraph."])
159 self.check_wrap(text, 40, ["This is a short paragraph."])
160
161
162 def test_wrap_short_1line(self):

Callers

nothing calls this directly

Calls 1

check_wrapMethod · 0.80

Tested by

no test coverage detected