and test writing to a buffer
()
| 58 | nt.assert_equal(f1, f2) |
| 59 | |
| 60 | def test_parse_sample(): |
| 61 | """and test writing to a buffer""" |
| 62 | buf = io.StringIO() |
| 63 | p = Parser(style=style) |
| 64 | p.format(sample, buf) |
| 65 | buf.seek(0) |
| 66 | f1 = buf.read() |
| 67 | |
| 68 | nt.assert_not_in('ERROR', f1) |
| 69 | |
| 70 | def test_parse_error(): |
| 71 | p = Parser(style=style) |