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

Method test_initial_indent

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

Source from the content-addressed store, hash-verified

734
735
736 def test_initial_indent(self):
737 # Test initial_indent parameter
738
739 expect = [" This paragraph will be filled,",
740 "first without any indentation, and then",
741 "with some (including a hanging indent)."]
742 result = wrap(self.text, 40, initial_indent=" ")
743 self.check(result, expect)
744
745 expect = "\n".join(expect)
746 result = fill(self.text, 40, initial_indent=" ")
747 self.check(result, expect)
748
749
750 def test_subsequent_indent(self):

Callers

nothing calls this directly

Calls 4

wrapFunction · 0.90
fillFunction · 0.90
checkMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected