mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Add .toxml test case, as proposed by Alex Martelli in bug report #116244.
This commit is contained in:
parent
2c8a89cc3f
commit
0a84a338f9
2 changed files with 7 additions and 1 deletions
|
@ -103,5 +103,6 @@ Test Succeeded testTooManyDocumentElements
|
|||
Passed Test
|
||||
Test Succeeded testUnlink
|
||||
Test Succeeded testWriteText
|
||||
Passed Test
|
||||
Test Succeeded testWriteXML
|
||||
All tests succeeded
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue