diff options
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/output/test_minidom | 1 | ||||
-rw-r--r-- | Lib/test/test_minidom.py | 9 |
2 files changed, 9 insertions, 1 deletions
diff --git a/Lib/test/output/test_minidom b/Lib/test/output/test_minidom index b0cb932..161ce91 100644 --- a/Lib/test/output/test_minidom +++ b/Lib/test/output/test_minidom @@ -110,6 +110,7 @@ Passed assertion: len(Node.allnodes) == 0 Passed Test Test Succeeded testGetElementsByTagName Passed assertion: len(Node.allnodes) == 0 +Passed Test Test Succeeded testGetElementsByTagNameNS Passed assertion: len(Node.allnodes) == 0 Test Succeeded testGetEmptyNodeListFromElementsByTagNameNS diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py index 5ff1beb..bdef6f5 100644 --- a/Lib/test/test_minidom.py +++ b/Lib/test/test_minidom.py @@ -239,7 +239,14 @@ def testGetAttributeNS(): pass def testGetAttributeNode(): pass -def testGetElementsByTagNameNS(): pass +def testGetElementsByTagNameNS(): + d="""<foo xmlns:minidom="http://pyxml.sf.net/minidom"> + <minidom:myelem/> + </foo>""" + dom = parseString(d) + elem = dom.getElementsByTagNameNS("http://pyxml.sf.net/minidom","myelem") + confirm(len(elem) == 1) + dom.unlink() def testGetEmptyNodeListFromElementsByTagNameNS(): pass |