mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
parent
f7cf40d331
commit
3277da0f33
2 changed files with 9 additions and 0 deletions
|
@ -397,6 +397,14 @@ def testNormalize():
|
|||
, "testNormalize -- result")
|
||||
doc.unlink()
|
||||
|
||||
doc = parseString("<doc/>")
|
||||
root = doc.documentElement
|
||||
root.appendChild(doc.createTextNode(""))
|
||||
doc.normalize()
|
||||
confirm(len(root.childNodes) == 0,
|
||||
"testNormalize -- single empty node removed")
|
||||
doc.unlink()
|
||||
|
||||
def testSiblings():
|
||||
doc = parseString("<doc><?pi?>text?<elm/></doc>")
|
||||
root = doc.documentElement
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue