MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_source_strip_multiline

Function test_source_strip_multiline

testing/code/test_source.py:73–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

stripMethod · 0.95
SourceClass · 0.90

Tested by

no test coverage detected