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()
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()
def test_empty_tag(self): outfile = StringIO() handler = CustomXMLGenerator(outfile, ENCODING) handler.addEmptyElement(u'a') self.assert_equals('<a/>', outfile.getvalue()) outfile.close()
def test_empty_tag(self): outfile = StringIO() handler = CustomXMLGenerator(outfile, ENCODING) handler.addEmptyElement(u'a') tools.assert_equals('<a/>', outfile.getvalue()) outfile.close()