]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2298_7] remove find() so that each element 'item' under the root element is checked
authorNaoki Kambe <kambe@jprs.co.jp>
Tue, 6 Nov 2012 12:12:45 +0000 (21:12 +0900)
committerNaoki Kambe <kambe@jprs.co.jp>
Tue, 6 Nov 2012 12:40:16 +0000 (21:40 +0900)
(actually this test wasn't run.)

src/bin/stats/tests/b10-stats-httpd_test.py

index 33c4d54ad7240dc2affdbcd90c876f57b877d778..4aa79492dc45f2471b8c636798117f43cd031a63 100644 (file)
@@ -253,7 +253,7 @@ class TestHttpHandler(unittest.TestCase):
                     '<?xml-stylesheet type="text/xsl" href="' + 
                     stats_httpd.XSL_URL_PATH
                     + '"?>'))
-            for elem in root.find('item'):
+            for elem in root:
                 attr = elem.attrib
                 value = isc.cc.data.find(DUMMY_DATA, attr['identifier'])
                 if type(value) is list or type(value) is dict: