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

Method test_indent_no_lines

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

Source from the content-addressed store, hash-verified

981 self.assertEqual(indent(text, '', predicate), text)
982
983 def test_indent_no_lines(self):
984 # Explicitly skip indenting any lines
985 predicate = lambda line: False
986 for text in self.CASES:
987 self.assertEqual(indent(text, ' ', predicate), text)
988
989 def test_roundtrip_spaces(self):
990 # A whitespace prefix should roundtrip with dedent

Callers

nothing calls this directly

Calls 2

indentFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected