[Zodb-checkins] CVS: Zope3/src/ZConfig/tests - test_loader.py:1.15

Fred L. Drake, Jr. fred at zope.com
Thu Jul 10 12:32:58 EDT 2003


Update of /cvs-repository/Zope3/src/ZConfig/tests
In directory cvs.zope.org:/tmp/cvs-serv5794/tests

Modified Files:
	test_loader.py 
Log Message:
Remove unused (and useless) excuse for schema component extensions.
Related tests are also removed.
Something usable should still be added.


=== Zope3/src/ZConfig/tests/test_loader.py 1.14 => 1.15 ===
--- Zope3/src/ZConfig/tests/test_loader.py:1.14	Wed Feb 19 10:54:15 2003
+++ Zope3/src/ZConfig/tests/test_loader.py	Thu Jul 10 11:32:22 2003
@@ -76,23 +76,6 @@
         schema = loader.loadFile(sio)
         self.assert_(schema.gettype("widget-a") is not None)
 
-    def test_import_from_package_extended(self):
-        loader = ZConfig.loader.SchemaLoader()
-        sio = StringIO("<schema>"
-                       "  <import package='ZConfig.tests.library.thing'/>"
-                       "  <section name='*' type='thing' attribute='thing'/>"
-                       "</schema>")
-        schema = loader.loadFile(sio)
-        schema.gettype("thing")
-        schema.gettype("thing-a")
-        schema.gettype("thing-b")
-        schema.gettype("thing-ext")
-
-        # Make sure the extension is wired in properly:
-        sio = StringIO("<thing-ext thing/>")
-        conf, handlers = ZConfig.loadConfigFile(schema, sio)
-        self.assertEqual(conf.thing.thing_ext_key, "thing-ext-default")
-
     def test_urlsplit_urlunsplit(self):
         # Extracted from Python's test.test_urlparse module:
         for url, parsed, split in [




More information about the Zodb-checkins mailing list