Beispiel #1
0
 def test_cdata_contents(self):
     outfile = StringIO()
     handler = CustomXMLGenerator(outfile, ENCODING)
     handler.addQuickElement(u'a', '<>')
     tools.assert_equals('<a><![CDATA[<>]]></a>', outfile.getvalue())
     outfile.close()
 def test_cdata_contents(self):
     outfile = StringIO()
     handler = CustomXMLGenerator(outfile, ENCODING)
     handler.addQuickElement(u'a', '<>')
     self.assert_equals('<a><![CDATA[<>]]></a>', outfile.getvalue())
     outfile.close()
Beispiel #3
0
 def test_cdata_contents(self):
     outfile = StringIO()
     handler = CustomXMLGenerator(outfile, ENCODING)
     handler.addQuickElement(u"a", "<>")
     tools.assert_equals("<a><![CDATA[<>]]></a>", outfile.getvalue())
     outfile.close()