MCPcopy Create free account
hub / github.com/ipython/ipython / test_tee_simple

Function test_tee_simple

IPython/utils/tests/test_io.py:19–25  ·  view source on GitHub ↗

Very simple check with stdout only

()

Source from the content-addressed store, hash-verified

17
18
19def test_tee_simple():
20 "Very simple check with stdout only"
21 chan = StringIO()
22 text = 'Hello'
23 tee = Tee(chan, channel='stdout')
24 print(text, file=chan)
25 nt.assert_equal(chan.getvalue(), text+"\n")
26
27
28class TeeTestCase(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

TeeClass · 0.90

Tested by

no test coverage detected