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

Method test_roundtrip_mixed

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

Source from the content-addressed store, hash-verified

997 self.assertEqual(dedent(indent(text, '\t\t')), text)
998
999 def test_roundtrip_mixed(self):
1000 # A whitespace prefix should roundtrip with dedent
1001 for text in self.ROUNDTRIP_CASES:
1002 self.assertEqual(dedent(indent(text, ' \t \t ')), text)
1003
1004 def test_indent_default(self):
1005 # Test default indenting of lines that are not whitespace only

Callers

nothing calls this directly

Calls 3

dedentFunction · 0.90
indentFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected