[Zodb-checkins] CVS: Packages/ZConfig/tests - test_schema.py:1.1.2.8

Fred L. Drake, Jr. fred@zope.com
Thu, 12 Dec 2002 13:11:21 -0500


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

Modified Files:
      Tag: zconfig-schema-devel-branch
	test_schema.py 
Log Message:
Support the sectiontype element in schemas.
This requires separation of the SectionInfo and SectionType information;
the schema itself is only represented as type info.
(The tests pass, but new tests are definately needed.)


=== Packages/ZConfig/tests/test_schema.py 1.1.2.7 => 1.1.2.8 ===
--- Packages/ZConfig/tests/test_schema.py:1.1.2.7	Thu Dec 12 00:04:17 2002
+++ Packages/ZConfig/tests/test_schema.py	Thu Dec 12 13:11:20 2002
@@ -98,13 +98,13 @@
 
     def test_app_sectiontype(self):
         schema = self.load_schema_text(
-            "<schema type='%s.appsection'>"
-            "  <section names='sect' type='%s.appsection'"
-            "           sectiontype='foo'>"
+            "<schema type='%s.appsection' prefix='%s'>"
+            "  <sectiontype name='foo' type='.appsection'>"
             "    <key name='sample' type='integer'>"
             "      <default>345</default>"
             "      </key>"
-            "    </section>"
+            "    </sectiontype>"
+            "  <section name='sect' type='foo' />"
             "</schema>"
             % (__name__, __name__))
         conf = self.load_config_text(schema,