[Zope3-checkins] CVS: Zope3/src/ZConfig/tests - test_loader.py:1.17
Fred L. Drake, Jr.
fred at zope.com
Thu Sep 25 10:35:12 EDT 2003
Update of /cvs-repository/Zope3/src/ZConfig/tests
In directory cvs.zope.org:/tmp/cvs-serv31361
Modified Files:
test_loader.py
Log Message:
add check that src and file are not both allowed on <import/>
=== Zope3/src/ZConfig/tests/test_loader.py 1.16 => 1.17 ===
--- Zope3/src/ZConfig/tests/test_loader.py:1.16 Thu Jul 10 14:39:40 2003
+++ Zope3/src/ZConfig/tests/test_loader.py Thu Sep 25 10:35:09 2003
@@ -67,6 +67,12 @@
" <import src='library.xml'"
" package='ZConfig'/>"
"</schema>"))
+ # cannot specify src and file
+ self.assertRaises(ZConfig.SchemaError, ZConfig.loadSchemaFile,
+ StringIO("<schema>"
+ " <import src='library.xml'"
+ " file='other.xml'/>"
+ "</schema>"))
def test_import_from_package(self):
loader = ZConfig.loader.SchemaLoader()
More information about the Zope3-Checkins
mailing list