diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-06-03 14:27:02 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-06-03 14:27:02 (GMT) |
commit | 351c3d055488b1ec68c764e22a0c784721f29020 (patch) | |
tree | 9e257b526e8208667827fdf3055df95ff110773e /Lib/test | |
parent | ed525fb0dfa45595e8e93cbde3d5b05838bf993a (diff) | |
download | cpython-351c3d055488b1ec68c764e22a0c784721f29020.zip cpython-351c3d055488b1ec68c764e22a0c784721f29020.tar.gz cpython-351c3d055488b1ec68c764e22a0c784721f29020.tar.bz2 |
Implement testGetElementsByTagNameNS.
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 |