Example #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, '')
Example #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, '')
Example #3
0
 def testParse(self):
     """parse should return a non-None value"""
     rootObj = outline_extended.parse('outline.xml')
     self.assertNotEqual(rootObj, None)
Example #4
0
 def testParse(self):
     """parse should return a non-None value"""
     rootObj = outline_extended.parse('outline.xml')
     self.assertNotEqual(rootObj, None)