Ejemplo n.º 1
0
 def testcompareParse(self):
     """export from parse should equal outline.out"""
     rootObj = outline_extended.parse('outline.xml')
     outfile = open('tmp.out', 'w')
     outfile.write('<?xml version="1.0" ?>\n')
     rootObj.export(outfile, 0)
     outfile.close()
     outfile = os.popen('diff outline.xml tmp.out', 'r')
     diffResult = outfile.read()
     outfile.close()
     self.assertEqual(diffResult, '')
Ejemplo n.º 2
0
 def testcompareParse(self):
     """export from parse should equal outline.out"""
     rootObj = outline_extended.parse('outline.xml')
     outfile = open('tmp.out', 'w')
     outfile.write('<?xml version="1.0" ?>\n')
     rootObj.export(outfile, 0)
     outfile.close()
     outfile = os.popen('diff outline.xml tmp.out', 'r')
     diffResult = outfile.read()
     outfile.close()
     self.assertEqual(diffResult, '')
Ejemplo n.º 3
0
 def testParse(self):
     """parse should return a non-None value"""
     rootObj = outline_extended.parse('outline.xml')
     self.assertNotEqual(rootObj, None)
Ejemplo n.º 4
0
 def testParse(self):
     """parse should return a non-None value"""
     rootObj = outline_extended.parse('outline.xml')
     self.assertNotEqual(rootObj, None)