Commit 00cf2e64 authored by Fred Drake's avatar Fred Drake

Create the rest of the infrastructure needed to load from the

configuration file template (reflects recent addition of a "products"
key to the template).
parent 226063df
......@@ -28,6 +28,7 @@ from App.config import getConfiguration
TEMPNAME = tempfile.mktemp()
TEMPPRODUCTS = os.path.join(TEMPNAME, "Products")
class StartupTestCase(unittest.TestCase):
......@@ -40,9 +41,11 @@ class StartupTestCase(unittest.TestCase):
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment