(self)
| 847 | |
| 848 | class TestCaptureIO: |
| 849 | def test_text(self) -> None: |
| 850 | f = capture.CaptureIO() |
| 851 | f.write("hello") |
| 852 | s = f.getvalue() |
| 853 | assert s == "hello" |
| 854 | f.close() |
| 855 | |
| 856 | def test_unicode_and_str_mixture(self) -> None: |
| 857 | f = capture.CaptureIO() |