[Zodb-checkins] CVS: Packages/ZConfig/tests - testConfig.py:1.8

Fred L. Drake, Jr. fred@zope.com
Thu, 21 Nov 2002 14:21:09 -0500


Update of /cvs-repository/Packages/ZConfig/tests
In directory cvs.zope.org:/tmp/cvs-serv2148/tests

Modified Files:
	testConfig.py 
Log Message:
Add a type filter to getChildSections().

=== Packages/ZConfig/tests/testConfig.py 1.7 => 1.8 ===
--- Packages/ZConfig/tests/testConfig.py:1.7	Thu Nov  7 15:05:25 2002
+++ Packages/ZConfig/tests/testConfig.py	Thu Nov 21 14:21:09 2002
@@ -176,10 +176,14 @@
         for k, v in [("var", "spam"), ("var-two", "stuff")]:
             self.assertEqual(sect.get(k), v)
         self.assert_(sect.get("var-one") is None)
+        L = []
         for sect in conf.getChildSections():
+            L.append(sect)
             if sect.type == "trivial":
                 self.assertEqual(sect.get("var"), "triv")
                 break
+        L2 = conf.getChildSections("trivial")
+        self.assertEqual(L, L2)
 
     def test_basic_import(self):
         conf = self.load("importer.conf")