BIND 10 trac2298_7, updated. 3f070f48b051fe40bd3223425d4cc78640a97a7b [2298_7] add checking of the two same lists
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Nov 7 02:18:41 UTC 2012
The branch, trac2298_7 has been updated
via 3f070f48b051fe40bd3223425d4cc78640a97a7b (commit)
from 3e089a516107add7d48a7b8d2007bc39819bc5a9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 3f070f48b051fe40bd3223425d4cc78640a97a7b
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Wed Nov 7 11:15:25 2012 +0900
[2298_7] add checking of the two same lists
check whether the list of 'identifier' attributes in root is same
as the list of item names in DUMMY_DATA
-----------------------------------------------------------------------
Summary of changes:
src/bin/stats/tests/b10-stats-httpd_test.py | 7 +++++++
1 file changed, 7 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/bin/stats/tests/b10-stats-httpd_test.py b/src/bin/stats/tests/b10-stats-httpd_test.py
index 85e65e2..1748a53 100644
--- a/src/bin/stats/tests/b10-stats-httpd_test.py
+++ b/src/bin/stats/tests/b10-stats-httpd_test.py
@@ -253,6 +253,13 @@ class TestHttpHandler(unittest.TestCase):
'<?xml-stylesheet type="text/xsl" href="' +
stats_httpd.XSL_URL_PATH
+ '"?>'))
+ # check whether the list of 'identifier' attributes in
+ # root is same as the list of item names in DUMMY_DATA
+ id_list = [ elm.attrib['identifier'] for elm in root ]
+ item_list = [ it for it in \
+ stats_httpd.item_name_list(DUMMY_DATA, path) \
+ if len(it.split('/')) > 1 ]
+ self.assertEqual(id_list, item_list)
for elem in root:
attr = elem.attrib
value = isc.cc.data.find(DUMMY_DATA, attr['identifier'])
More information about the bind10-changes
mailing list