[Zope-Checkins] CVS: Packages/OFS/tests -
testAppInitializer.py:1.1.2.2
Tino Wildenhain
tino at wildenhain.de
Fri Nov 26 04:58:07 EST 2004
Update of /cvs-repository/Packages/OFS/tests
In directory cvs.zope.org:/tmp/cvs-serv16357/lib/python/OFS/tests
Modified Files:
Tag: Zope-2_7-branch
testAppInitializer.py
Log Message:
Default creation of Virtual Host Monster as 'virtual_hosting'
during App initializing.
Added test
Fixed test of SiteAccess product
Part of collector issue #1568
=== Packages/OFS/tests/testAppInitializer.py 1.1.2.1 => 1.1.2.2 ===
--- Packages/OFS/tests/testAppInitializer.py:1.1.2.1 Sat Dec 20 13:10:41 2003
+++ Packages/OFS/tests/testAppInitializer.py Fri Nov 26 04:57:36 2004
@@ -109,7 +109,7 @@
self.assertEqual(app.temp_folder.session_data.meta_type,
'Transient Object Container')
self.failUnless(app._getInitializerFlag('temp_folder'))
-
+
def test_install_tempfolder_and_sdc_status(self):
self.configure(good_cfg)
i = self.getOne()
@@ -129,6 +129,14 @@
self.assertEqual(app.browser_id_manager.meta_type,'Browser Id Manager')
self.failUnless(app._getInitializerFlag('browser_id_manager'))
+ def test_install_virtual_hosting(self):
+ self.configure(good_cfg)
+ i = self.getOne()
+ app = i.getApp()
+ i.install_virtual_hosting()
+ self.assertEqual(app.virtual_hosting.meta_type,'Virtual Host Monster')
+ self.failUnless(app._getInitializerFlag('virtual_hosting'))
+
def test_install_session_data_manager(self):
self.configure(good_cfg)
i = self.getOne()
@@ -154,7 +162,7 @@
root = i.getApp()._p_jar.root()
self.failUnless(root.has_key('ZGlobals'))
self.failUnless(isinstance(root['ZGlobals'], OOBTree))
-
+
def test_install_inituser(self):
fname = os.path.join(TEMPNAME, 'inituser')
f = open(fname, 'w')
@@ -183,7 +191,7 @@
i = self.getOne()
i.install_products()
self.failUnless(Application.misc_.__dict__.has_key('OFSP'))
-
+
def test_install_standards(self):
self.configure(good_cfg)
i = self.getOne()
More information about the Zope-Checkins
mailing list