[Python-checkins] CVS: python/dist/src/Lib/test test_minidom.py,1.15,1.16

Fred L. Drake python-dev@python.org
Thu, 14 Dec 2000 10:20:24 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory slayer.i.sourceforge.net:/tmp/cvs-serv24413

Modified Files:
	test_minidom.py 
Log Message:

Update the test suite to cover more ground.

This closes patch #102477.


Index: test_minidom.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_minidom.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** test_minidom.py	2000/11/21 22:02:43	1.15
--- test_minidom.py	2000/12/14 18:20:20	1.16
***************
*** 398,401 ****
--- 398,409 ----
      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>")