From: Martin v. Löwis Date: Fri, 6 Oct 2000 22:42:55 +0000 (+0000) Subject: Add .toxml test case, as proposed by Alex Martelli in bug report #116244. X-Git-Tag: v2.0c1~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a84a338f9fb578303eb4341dbf0e8514dafe7e0;p=python Add .toxml test case, as proposed by Alex Martelli in bug report #116244. --- diff --git a/Lib/test/output/test_minidom b/Lib/test/output/test_minidom index 2a69827759..2fa4032085 100644 --- a/Lib/test/output/test_minidom +++ b/Lib/test/output/test_minidom @@ -103,5 +103,6 @@ Test Succeeded testTooManyDocumentElements Passed Test Test Succeeded testUnlink Test Succeeded testWriteText +Passed Test Test Succeeded testWriteXML All tests succeeded diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py index 52bd5c7d00..d9fee5bca6 100644 --- a/Lib/test/test_minidom.py +++ b/Lib/test/test_minidom.py @@ -246,7 +246,12 @@ def testAttributeRepr(): def testTextNodeRepr(): pass -def testWriteXML(): pass +def testWriteXML(): + str = '' + dom = parseString(str) + domstr = dom.toxml() + dom.unlink() + confirm(str == domstr) def testProcessingInstruction(): pass