def test_4DTDcompile(self): fo = open("pomtest.py", "w") try: dtdp = DTD.get_dtd_compiler(fo) dtdp.parse_resource("etc/dtd/pomtest.dtd") finally: fo.close()
def test_3DTD(self): dtdp = DTD.get_dtd_compiler(sys.stdout) dtdp.parse_resource("etc/dtd/pomtest.dtd")