[Zope-Checkins] CVS: Packages/OFS/tests -
testAppInitializer.py:1.1.2.3
Tres Seaver
tseaver at zope.com
Tue Jan 18 11:21:14 EST 2005
Update of /cvs-repository/Packages/OFS/tests
In directory cvs.zope.org:/tmp/cvs-serv19080/lib/python/OFS/tests
Modified Files:
Tag: Zope-2_7-branch
testAppInitializer.py
Log Message:
- Collector #1667: allow 'max-number-of-session-objects 0' to have
the same effect as setting the value via the web interface (i.e.,
make the number of session objects unlimited, rather than falling
back to the default).
=== Packages/OFS/tests/testAppInitializer.py 1.1.2.2 => 1.1.2.3 ===
--- Packages/OFS/tests/testAppInitializer.py:1.1.2.2 Fri Nov 26 04:57:36 2004
+++ Packages/OFS/tests/testAppInitializer.py Tue Jan 18 11:21:14 2005
@@ -121,6 +121,18 @@
status = i.install_tempfolder_and_sdc()
self.failIf(status)
+ def test_install_tempfolder_and_sdc_unlimited_sessions(self):
+ unlimited_cfg = good_cfg + """
+ maximum-number-of-session-objects 0
+ """
+ self.configure(unlimited_cfg)
+ i = self.getOne()
+ status = i.install_tempfolder_and_sdc()
+ self.failUnless(status)
+
+ sdc = i.getApp().temp_folder.session_data
+ self.assertEqual(sdc.getSubobjectLimit(), 0)
+
def test_install_browser_id_manager(self):
self.configure(good_cfg)
i = self.getOne()
More information about the Zope-Checkins
mailing list