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

- compare against empty list, memcache limitation, ref:...

 - compare against empty list, memcache limitation, ref: http://mail.nexedi.com/pipermail/erp5-dev/2008-August/002032.html

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23214 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 28095093
......@@ -366,6 +366,17 @@ class TestSelectionToolMemcachedStorage(TestSelectionTool):
self.portal.portal_selections.setStorage('Memcached Tool')
TestSelectionTool.afterSetUp(self)
def testGetSelectionContainer(self, quiet=quiet, run=run_all_test):
if not run: return
self.portal_selections.setStorage('Memcached Tool')
self.assertEquals([],
self.portal_selections.getSelectionNameList())
self.assertEquals([],
self.portal_selections.getSelectionNames())
self.assert_(self.portal_selections._getMemcachedContainer() is not None)
self.assert_(getattr(self.portal_selections, '_v_selection_data', None)
is not None)
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestSelectionTool))
......
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