Ejemplo n.º 1
0
 def test_empty_tag_with_attributes(self):
     outfile = StringIO()
     handler = CustomXMLGenerator(outfile, ENCODING)
     handler.addEmptyElement(u'a', {'b': 'c'})
     self.assert_equals('<a b="c"/>', outfile.getvalue())
     outfile.close()
Ejemplo n.º 2
0
 def test_empty_tag_with_attributes(self):
     outfile = StringIO()
     handler = CustomXMLGenerator(outfile, ENCODING)
     handler.addEmptyElement(u'a', {'b': 'c'})
     tools.assert_equals('<a b="c"/>', outfile.getvalue())
     outfile.close()
Ejemplo n.º 3
0
 def test_empty_tag(self):
     outfile = StringIO()
     handler = CustomXMLGenerator(outfile, ENCODING)
     handler.addEmptyElement(u'a')
     self.assert_equals('<a/>', outfile.getvalue())
     outfile.close()
Ejemplo n.º 4
0
 def test_empty_tag(self):
     outfile = StringIO()
     handler = CustomXMLGenerator(outfile, ENCODING)
     handler.addEmptyElement(u'a')
     tools.assert_equals('<a/>', outfile.getvalue())
     outfile.close()