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

Method test_subsequent_indent

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

Source from the content-addressed store, hash-verified

748
749
750 def test_subsequent_indent(self):
751 # Test subsequent_indent parameter
752
753 expect = '''\
754 * This paragraph will be filled, first
755 without any indentation, and then
756 with some (including a hanging
757 indent).'''
758
759 result = fill(self.text, 40,
760 initial_indent=" * ", subsequent_indent=" ")
761 self.check(result, expect)
762
763
764# Despite the similar names, DedentTestCase is *not* the inverse

Callers

nothing calls this directly

Calls 2

fillFunction · 0.90
checkMethod · 0.45

Tested by

no test coverage detected