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