(caplog)
| 134 | |
| 135 | |
| 136 | def test_unicode(caplog): |
| 137 | caplog.set_level(logging.INFO) |
| 138 | logger.info("bū") |
| 139 | assert caplog.records[0].levelname == "INFO" |
| 140 | assert caplog.records[0].msg == "bū" |
| 141 | assert "bū" in caplog.text |
| 142 | |
| 143 | |
| 144 | def test_clear(caplog): |