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

Method test_line

testing/io/test_terminalwriter.py:94–98  ·  view source on GitHub ↗
(self, tw)

Source from the content-addressed store, hash-verified

92 yield tw
93
94 def test_line(self, tw) -> None:
95 tw.line("hello")
96 lines = tw.getlines()
97 assert len(lines) == 1
98 assert lines[0] == "hello\n"
99
100 def test_line_unicode(self, tw) -> None:
101 msg = "b\u00f6y"

Callers

nothing calls this directly

Calls 2

getlinesMethod · 0.80
lineMethod · 0.45

Tested by

no test coverage detected