Beispiel #1
0
 def test_TemplateXMLTreeBuilder_nosub(self):
     txtb = xml_utils.TemplateXMLTreeBuilder()
     # elementree pukes on identifiers starting with $
     txtb.feed(self.RESULTCHECK)
     et = txtb.close()
     result = ElementTree.tostring(et)
     self.assertEqual(result, self.RESULTCHECK)
Beispiel #2
0
 def test_MappingTreeBuilder_standalone(self):
     txtb = xml_utils.TemplateXMLTreeBuilder(**self.MAPPING)
     txtb.feed(self.FULLREPLACE)
     et = txtb.close()
     result = ElementTree.tostring(et)
     self.assertEqual(result, self.RESULTCHECK)