[Zodb-checkins] CVS: Packages/ZConfig/tests - test_loader.py:1.9

Fred L. Drake, Jr. fred@zope.com
Thu, 9 Jan 2003 17:29:40 -0500


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

Modified Files:
	test_loader.py 
Log Message:
Make schema components get searched on sys.path:  Since these bind to code
via the datatype attributes, this makes quite a bit of sense after all.


=== Packages/ZConfig/tests/test_loader.py 1.8 => 1.9 ===
--- Packages/ZConfig/tests/test_loader.py:1.8	Wed Jan  8 00:50:56 2003
+++ Packages/ZConfig/tests/test_loader.py	Thu Jan  9 17:29:36 2003
@@ -79,17 +79,17 @@
                                    "</schema>"))
 
     def test_import_from_package(self):
-        loader = ZConfig.loader.SchemaLoader(library=LIBRARY_DIR)
+        loader = ZConfig.loader.SchemaLoader()
         sio = StringIO("<schema>"
-                       "  <import package='widget'/>"
+                       "  <import package='ZConfig.tests.library.widget'/>"
                        "</schema>")
         schema = loader.loadFile(sio)
         self.assert_(schema.gettype("widget-a") is not None)
 
     def test_import_from_package_extended(self):
-        loader = ZConfig.loader.SchemaLoader(library=LIBRARY_DIR)
+        loader = ZConfig.loader.SchemaLoader()
         sio = StringIO("<schema>"
-                       "  <import package='thing'/>"
+                       "  <import package='ZConfig.tests.library.thing'/>"
                        "  <section name='*' type='thing' attribute='thing'/>"
                        "</schema>")
         schema = loader.loadFile(sio)