[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/StartUp/tests - testStartupDirectives.py:1.6
Jeremy Hylton
jeremy@zope.com
Fri, 20 Dec 2002 14:52:58 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/StartUp/tests
In directory cvs.zope.org:/tmp/cvs-serv14499
Modified Files:
testStartupDirectives.py
Log Message:
Close the SiteDefinition() after each call to useXXXStorage().
=== Zope3/lib/python/Zope/App/StartUp/tests/testStartupDirectives.py 1.5 => 1.6 ===
--- Zope3/lib/python/Zope/App/StartUp/tests/testStartupDirectives.py:1.5 Fri Dec 20 14:46:46 2002
+++ Zope3/lib/python/Zope/App/StartUp/tests/testStartupDirectives.py Fri Dec 20 14:52:57 2002
@@ -54,11 +54,12 @@
self.assertEqual(sd.useFileStorage(ContextStub(), file=_fsname), [])
self.assertEqual(sd._zodb._storage.__class__.__name__, 'FileStorage')
self.assertEqual(sd._zodb._storage._file_name, _fsname)
- sd._zodb.close()
+ sd.close()
self.assertEqual(sd.useMappingStorage(ContextStub()), [])
self.assertEqual(sd._zodb._storage.__class__.__name__,
'MappingStorage')
+ sd.close()
def testUseLog(self):