[Zope3-checkins] CVS: Packages/ZConfig/tests - test_schema.py:1.1.2.36
Fred L. Drake, Jr.
fred@zope.com
Fri, 3 Jan 2003 00:23:08 -0500
Update of /cvs-repository/Packages/ZConfig/tests
In directory cvs.zope.org:/tmp/cvs-serv17847
Modified Files:
Tag: zconfig-schema-devel-branch
test_schema.py
Log Message:
Minimal test that reproduces a bug that Jeremy reported.
=== Packages/ZConfig/tests/test_schema.py 1.1.2.35 => 1.1.2.36 ===
--- Packages/ZConfig/tests/test_schema.py:1.1.2.35 Thu Jan 2 18:06:59 2003
+++ Packages/ZConfig/tests/test_schema.py Fri Jan 3 00:23:04 2003
@@ -449,6 +449,19 @@
self.assertRaises(ZConfig.ConfigurationError,
self.load_config_text, schema, "<sect/>")
+ def test_nested_abstract_sectiontype(self):
+ schema = self.load_schema_text(
+ "<schema>"
+ " <sectiongroup type='abstract'>"
+ " <sectiontype type='t1'/>"
+ " <sectiontype type='t2'>"
+ " <section type='abstract' name='s1'/>"
+ " </sectiontype>"
+ " </sectiongroup>"
+ " <section type='abstract' name='*' attribute='s2'/>"
+ "</schema>")
+ conf = self.load_config_text(schema, "<t2>\n <t1 s1/>\n</t2>")
+
def test_suite():
return unittest.makeSuite(SchemaTestCase)