(self)
| 897 | |
| 898 | class TestCaptureIO: |
| 899 | def test_text(self) -> None: |
| 900 | f = capture.CaptureIO() |
| 901 | f.write("hello") |
| 902 | s = f.getvalue() |
| 903 | assert s == "hello" |
| 904 | f.close() |
| 905 | |
| 906 | def test_unicode_and_str_mixture(self) -> None: |
| 907 | f = capture.CaptureIO() |