From 351c3d055488b1ec68c764e22a0c784721f29020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sun, 3 Jun 2001 14:27:02 +0000 Subject: Implement testGetElementsByTagNameNS. --- Lib/test/output/test_minidom | 1 + Lib/test/test_minidom.py | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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=""" + + """ + dom = parseString(d) + elem = dom.getElementsByTagNameNS("http://pyxml.sf.net/minidom","myelem") + confirm(len(elem) == 1) + dom.unlink() def testGetEmptyNodeListFromElementsByTagNameNS(): pass -- cgit v0.12