and test writing to a buffer
(theme_name)
| 54 | |
| 55 | |
| 56 | def test_parse_sample(theme_name): |
| 57 | """and test writing to a buffer""" |
| 58 | buf = io.StringIO() |
| 59 | p = Parser(theme_name=theme_name) |
| 60 | p.format(sample, buf) |
| 61 | buf.seek(0) |
| 62 | f1 = buf.read() |
| 63 | |
| 64 | assert "ERROR" not in f1 |
| 65 | |
| 66 | |
| 67 | def test_parse_error(theme_name): |