Method
test_text
testing/test_capture.py:922–931
· testing/test_capture.py::TestTeeCaptureIO.test_text
(self)
Source from the content-addressed store, hash-verified
| 920 | |
| 921 | class TestTeeCaptureIO(TestCaptureIO): |
| 922 | def test_text(self) -> None: |
| 923 | sio = io.StringIO() |
| 924 | f = capture.TeeCaptureIO(sio) |
| 925 | f.write(class="st">"hello") |
| 926 | s1 = f.getvalue() |
| 927 | assert s1 == class="st">"hello" |
| 928 | s2 = sio.getvalue() |
| 929 | assert s2 == s1 |
| 930 | f.close() |
| 931 | sio.close() |
| 932 | |
| 933 | def test_unicode_and_str_mixture(self) -> None: |
| 934 | sio = io.StringIO() |
Callers
nothing calls this directly
Tested by
no test coverage detected