[Zope-Checkins] CVS: Zope/lib/python/Zope/Startup/tests - test_schema.py:1.5

Fred L. Drake, Jr. fred@zope.com
Fri, 21 Mar 2003 17:29:05 -0500


Update of /cvs-repository/Zope/lib/python/Zope/Startup/tests
In directory cvs.zope.org:/tmp/cvs-serv31548

Modified Files:
	test_schema.py 
Log Message:
Create the rest of the infrastructure needed to load from the
configuration file template (reflects recent addition of a "products"
key to the template).


=== Zope/lib/python/Zope/Startup/tests/test_schema.py 1.4 => 1.5 ===
--- Zope/lib/python/Zope/Startup/tests/test_schema.py:1.4	Tue Mar 18 16:37:50 2003
+++ Zope/lib/python/Zope/Startup/tests/test_schema.py	Fri Mar 21 17:29:04 2003
@@ -28,6 +28,7 @@
 
 
 TEMPNAME = tempfile.mktemp()
+TEMPPRODUCTS = os.path.join(TEMPNAME, "Products")
 
 
 class StartupTestCase(unittest.TestCase):
@@ -40,9 +41,11 @@
         sio = cStringIO.StringIO(
             text.replace("<<INSTANCE_HOME>>", TEMPNAME))
         os.mkdir(TEMPNAME)
+        os.mkdir(TEMPPRODUCTS)
         try:
             conf, handler = ZConfig.loadConfigFile(schema, sio)
         finally:
+            os.rmdir(TEMPPRODUCTS)
             os.rmdir(TEMPNAME)
         self.assertEqual(conf.instancehome, TEMPNAME)
         return conf