[Zope3-checkins] CVS: Zope/lib/python/ZConfig/tests - testSchema.py:1.1.2.10

Fred L. Drake, Jr. fred@zope.com
Tue, 26 Nov 2002 12:39:24 -0500


Update of /cvs-repository/Zope/lib/python/ZConfig/tests
In directory cvs.zope.org:/tmp/cvs-serv22850

Modified Files:
      Tag: chrism-install-branch
	testSchema.py 
Log Message:
Added test for type filtering with getChildSections().


=== Zope/lib/python/ZConfig/tests/testSchema.py 1.1.2.9 => 1.1.2.10 ===
--- Zope/lib/python/ZConfig/tests/testSchema.py:1.1.2.9	Mon Nov 25 13:26:50 2002
+++ Zope/lib/python/ZConfig/tests/testSchema.py	Tue Nov 26 12:39:22 2002
@@ -286,10 +286,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():
             if sect.type == "trivial":
                 self.assertEqual(sect.get("var"), "triv")
+                L.append(sect)
                 break
+        L2 = conf.getChildSections("TRIVIAL")
+        self.assertEqual(L, L2)
 
     def donttest_basic_import(self):
         conf = self.load("importer.conf", 'directives.schema')