summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_minidom.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_minidom.py')
-rw-r--r--Lib/test/test_minidom.py9
1 files changed, 8 insertions, 1 deletions
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