def METHOD_NAME(self):
    with open(TTPROGRAM_TTX, "r", encoding="utf-8") as f:
        ttProgramXML = f.read()
    p = Program()
    p.fromBytecode(BYTECODE)
    ttfont = TestFont()
    buf = StringIO()
    writer = XMLWriter(buf)
    try:
        p.toXML(writer, ttfont)
    finally:
        output_string = buf.getvalue()
    assert output_string == ttProgramXML