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

Method test_wrap_short_1line

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

Source from the content-addressed store, hash-verified

160
161
162 def test_wrap_short_1line(self):
163 # Test endcases
164
165 text = "This is a short line."
166
167 self.check_wrap(text, 30, ["This is a short line."])
168 self.check_wrap(text, 30, ["(1) This is a short line."],
169 initial_indent="(1) ")
170
171
172 def test_hyphenated(self):

Callers

nothing calls this directly

Calls 1

check_wrapMethod · 0.80

Tested by

no test coverage detected