[Zope3-checkins] CVS: Zope/lib/python/ZConfig/tests - test_schema.py:1.13

Fred L. Drake, Jr. fred@zope.com
Thu, 6 Feb 2003 11:45:37 -0500


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

Modified Files:
	test_schema.py 
Log Message:
Save the "matcher" object for a section, and provide APIs to get the matcher
and the section type information from a SectionValue.


=== Zope/lib/python/ZConfig/tests/test_schema.py 1.12 => 1.13 ===
--- Zope/lib/python/ZConfig/tests/test_schema.py:1.12	Thu Feb  6 10:48:12 2003
+++ Zope/lib/python/ZConfig/tests/test_schema.py	Thu Feb  6 11:45:37 2003
@@ -399,10 +399,10 @@
         eq(conf.g[3].k2, "value2")
 
         # white box:
-        self.assert_(conf.g[0]._type is t1)
-        self.assert_(conf.g[1]._type is t1)
-        self.assert_(conf.g[2]._type is t2)
-        self.assert_(conf.g[3]._type is t2)
+        self.assert_(conf.g[0].getSectionDefinition() is t1)
+        self.assert_(conf.g[1].getSectionDefinition() is t1)
+        self.assert_(conf.g[2].getSectionDefinition() is t2)
+        self.assert_(conf.g[3].getSectionDefinition() is t2)
 
     def test_abstracttype_extension(self):
         schema = self.load_schema_text("""\