Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pytest-dev/pytest
/ test_line
Method
test_line
testing/io/test_terminalwriter.py:97–101 ·
view source on GitHub ↗
(self, tw)
Source
from the content-addressed store, hash-verified
95
yield
tw
96
97
def
test_line(self, tw) -> None:
98
tw.line(
"hello"
)
99
lines = tw.getlines()
100
assert len(lines) == 1
101
assert lines[0] ==
"hello\n"
102
103
def
test_line_unicode(self, tw) -> None:
104
msg =
"b\u00f6y"
Callers
nothing calls this directly
Calls
2
getlines
Method · 0.80
line
Method · 0.45
Tested by
no test coverage detected