[Erp5-report] r40363 luke - /erp5/trunk/products/ERP5Form/tests/testPreferences.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Nov 18 13:52:43 CET 2010
Author: luke
Date: Thu Nov 18 13:52:43 2010
New Revision: 40363
URL: http://svn.erp5.org?rev=40363&view=rev
Log:
- check what is happening when clear cache does not work (which is normal)
Modified:
erp5/trunk/products/ERP5Form/tests/testPreferences.py
Modified: erp5/trunk/products/ERP5Form/tests/testPreferences.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/tests/testPreferences.py?rev=40363&r1=40362&r2=40363&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/tests/testPreferences.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/tests/testPreferences.py [utf8] Thu Nov 18 13:52:43 2010
@@ -617,6 +617,13 @@ class TestPreferences(PropertySheetTestC
self.assertEqual(system_preference_string,
portal_preferences.getDummystring())
+ def test_system_preference_value_prefererred_clear_cache_disabled(self):
+ # simulate situation when _clearCache does nothing, for example in case
+ # if memcached or any other non-deleteable cache is used
+ from Products.ERP5Form.Document.Preference import Preference
+ Preference._clearCache = lambda *args,**kwargs: None
+ self.test_system_preference_value_prefererred()
+
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestPreferences))
More information about the Erp5-report
mailing list