(stdout_sim)
| 116 | |
| 117 | |
| 118 | def test_stdsim_clear(stdout_sim) -> None: |
| 119 | my_str = "Hello World" |
| 120 | stdout_sim.write(my_str) |
| 121 | assert stdout_sim.getvalue() == my_str |
| 122 | stdout_sim.clear() |
| 123 | assert stdout_sim.getvalue() == "" |
| 124 | |
| 125 | |
| 126 | def test_stdsim_getattr_exist(stdout_sim) -> None: |