Commit 28095093 authored by Łukasz Nowak's avatar Łukasz Nowak

- added tests for selection tool with memcached storage

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23213 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c26f7859
...@@ -355,9 +355,20 @@ class TestSelectionPersistence(unittest.TestCase): ...@@ -355,9 +355,20 @@ class TestSelectionPersistence(unittest.TestCase):
self.assertEquals('saved_value', self.assertEquals('saved_value',
portal_selections.getSelectionParamsFor('test_selection').get('key')) portal_selections.getSelectionParamsFor('test_selection').get('key'))
class TestSelectionToolMemcachedStorage(TestSelectionTool):
quiet = 1
run_all_test = 1
def getTitle(self):
return "SelectionTool with Memcached Storage"
def afterSetUp(self):
self.portal.portal_selections.setStorage('Memcached Tool')
TestSelectionTool.afterSetUp(self)
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestSelectionTool)) suite.addTest(unittest.makeSuite(TestSelectionTool))
suite.addTest(unittest.makeSuite(TestSelectionToolMemcachedStorage))
suite.addTest(unittest.makeSuite(TestSelectionPersistence)) suite.addTest(unittest.makeSuite(TestSelectionPersistence))
return suite return suite
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