MCPcopy
hub / github.com/pytest-dev/pytest / test_source_strip_multiline

Function test_source_strip_multiline

testing/code/test_source.py:70–74  ·  testing/code/test_source.py::test_source_strip_multiline
()

Source from the content-addressed store, hash-verified

68
69
70def test_source_strip_multiline() -> None:
71 source = Source()
72 source.lines = [class="st">"", class="st">" hello", class="st">" "]
73 source2 = source.strip()
74 assert source2.lines == [class="st">" hello"]
75
76
77class TestAccesses:

Callers

nothing calls this directly

Calls 2

stripMethod · 0.95
SourceClass · 0.90

Tested by

no test coverage detected