MCPcopy Create free account
hub / github.com/Vanderhoof/PyDBML / test_nonempty

Method test_nonempty

test/test_tools.py:67–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65 self.assertEqual(indent(""), "")
66
67 def test_nonempty(self) -> None:
68 oneline = "one line text"
69 self.assertEqual(indent(oneline), f" {oneline}")
70 source = "line1\nline2\nline3"
71 expected = " line1\n line2\n line3"
72 self.assertEqual(indent(source), expected)
73 expected2 = " line1\n line2\n line3"
74 self.assertEqual(indent(source, 2), expected2)
75
76
77class TestStripEmptyLines(TestCase):

Callers

nothing calls this directly

Calls 1

indentFunction · 0.90

Tested by

no test coverage detected