[Zope-Checkins] CVS: Zope3/src/ZConfig/tests - test_loader.py:1.19
Fred L. Drake, Jr.
fred at zope.com
Fri Oct 3 13:12:04 EDT 2003
Update of /cvs-repository/Zope3/src/ZConfig/tests
In directory cvs.zope.org:/tmp/cvs-serv8185
Modified Files:
test_loader.py
Log Message:
Add test that shows ZConfig loading a component from a supplemental directory
in the package __path__.
=== Zope3/src/ZConfig/tests/test_loader.py 1.18 => 1.19 ===
--- Zope3/src/ZConfig/tests/test_loader.py:1.18 Fri Oct 3 12:41:32 2003
+++ Zope3/src/ZConfig/tests/test_loader.py Fri Oct 3 13:11:33 2003
@@ -97,6 +97,15 @@
schema = loader.loadFile(sio)
self.assert_(schema.gettype("extra-type") is not None)
+ def test_import_from_package_extra_directory(self):
+ loader = ZConfig.loader.SchemaLoader()
+ sio = StringIO("<schema>"
+ " <import package='ZConfig.tests.library.thing'"
+ " file='extras.xml' />"
+ "</schema>")
+ schema = loader.loadFile(sio)
+ self.assert_(schema.gettype("extra-thing") is not None)
+
def test_import_from_package_with_missing_file(self):
loader = ZConfig.loader.SchemaLoader()
sio = StringIO("<schema>"
More information about the Zope-Checkins
mailing list