Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
73
def
test_source_strip_multiline() -> None:
74
source = Source()
75
source.lines = [
""
,
" hello"
,
" "
]
76
source2 = source.strip()
77
assert source2.lines == [
" hello"
]
78
79
80
class
TestAccesses:
Callers
nothing calls this directly
Calls
2
strip
Method · 0.95
Source
Class · 0.90
Tested by
no test coverage detected