MCPcopy Create free account
hub / github.com/ipython/ipython / test_parse_sample

Function test_parse_sample

IPython/utils/tests/test_pycolorize.py:60–68  ·  view source on GitHub ↗

and test writing to a buffer

()

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 4

formatMethod · 0.95
ParserClass · 0.90
seekMethod · 0.80
readMethod · 0.80

Tested by

no test coverage detected