[Zodb-checkins] CVS: StandaloneZConfig/ZConfig/tests -
test_schema.py:1.26
Fred L. Drake, Jr.
fred at zope.com
Tue Mar 16 17:02:09 EST 2004
Update of /cvs-repository/StandaloneZConfig/ZConfig/tests
In directory cvs.zope.org:/tmp/cvs-serv11722/ZConfig/tests
Modified Files:
test_schema.py
Log Message:
repeating the description element within a context is an error
=== StandaloneZConfig/ZConfig/tests/test_schema.py 1.25 => 1.26 ===
--- StandaloneZConfig/ZConfig/tests/test_schema.py:1.25 Tue Mar 16 15:47:25 2004
+++ StandaloneZConfig/ZConfig/tests/test_schema.py Tue Mar 16 17:02:08 2004
@@ -900,6 +900,16 @@
<schema extends='%s/base-keytype1.xml %s/base-keytype2.xml'/>
""" % (CONFIG_BASE, CONFIG_BASE))
+ def test_multiple_descriptions_is_error(self):
+ self.assertRaises(ZConfig.SchemaError,
+ self.load_schema_text, """\
+ <schema>
+ <description> foo </description>
+ <description> bar </description>
+ </schema>
+ """)
+
+
def test_suite():
return unittest.makeSuite(SchemaTestCase)
More information about the Zodb-checkins
mailing list