Add .toxml test case, as proposed by Alex Martelli in bug report #116244.

This commit is contained in:
Martin v. Löwis 2000-10-06 22:42:55 +00:00
parent 2c8a89cc3f
commit 0a84a338f9
2 changed files with 7 additions and 1 deletions

View file

@ -103,5 +103,6 @@ Test Succeeded testTooManyDocumentElements
Passed Test
Test Succeeded testUnlink
Test Succeeded testWriteText
Passed Test
Test Succeeded testWriteXML
All tests succeeded

View file

@ -246,7 +246,12 @@ def testAttributeRepr():
def testTextNodeRepr(): pass
def testWriteXML(): pass
def testWriteXML():
str = '<a b="c"/>'
dom = parseString(str)
domstr = dom.toxml()
dom.unlink()
confirm(str == domstr)
def testProcessingInstruction(): pass