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

Method test_empty_lines

Lib/idlelib/idle_test/test_squeezer.py:58–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

56 self.assertEqual(count_lines_with_wrapping("1\n2\n3\n"), 3)
57
58 def test_empty_lines(self):
59 self.check(expected=1, text='\n', linewidth=80)
60 self.check(expected=2, text='\n\n', linewidth=80)
61 self.check(expected=10, text='\n' * 10, linewidth=80)
62
63 def test_long_line(self):
64 self.check(expected=3, text='a' * 200, linewidth=80)

Callers

nothing calls this directly

Calls 1

checkMethod · 0.95

Tested by

no test coverage detected