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

Method test_split

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

Source from the content-addressed store, hash-verified

412 initial_indent=" ", subsequent_indent=" ")
413
414 def test_split(self):
415 # Ensure that the standard _split() method works as advertised
416 # in the comments
417
418 text = "Hello there -- you goof-ball, use the -b option!"
419
420 result = self.wrapper._split(text)
421 self.check(result,
422 ["Hello", " ", "there", " ", "--", " ", "you", " ", "goof-",
423 "ball,", " ", "use", " ", "the", " ", "-b", " ", "option!"])
424
425 def test_break_on_hyphens(self):
426 # Ensure that the break_on_hyphens attributes work

Callers

nothing calls this directly

Calls 2

_splitMethod · 0.80
checkMethod · 0.45

Tested by

no test coverage detected