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

Function test_source_strip_multiline

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

stripMethod · 0.95
SourceClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…