MCPcopy
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

getlinesMethod · 0.80
lineMethod · 0.45

Tested by

no test coverage detected