Пример #1
0
 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()
Пример #2
0
 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()
Пример #3
0
 def test_3DTD(self):
     dtdp = DTD.get_dtd_compiler(sys.stdout)
     dtdp.parse_resource("etc/dtd/pomtest.dtd")
Пример #4
0
 def test_3DTD(self):
     dtdp = DTD.get_dtd_compiler(sys.stdout)
     dtdp.parse_resource("etc/dtd/pomtest.dtd")