Very simple check with stdout only
()
| 17 | |
| 18 | |
| 19 | def 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 | |
| 28 | class TeeTestCase(unittest.TestCase): |