Commit 20a555e4 authored by Jérome Perrin's avatar Jérome Perrin

tests that we can use simple folder methods on category tool (currently not)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30057 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f707ab53
......@@ -1175,6 +1175,16 @@ class TestCMFCategory(ERP5TypeTestCase):
self.assertTrue(getattr(obj, 'getRegionValueList') is not None)
self.assertTrue(getattr(obj, 'getRegionList') is not None)
def test_CategoryTool_FolderInterface(self):
# minimal tests for Folder methods on Category Tool
category_tool = self.portal.portal_categories
self.assertNotEquals([], list(category_tool.contentValues()))
self.assertNotEquals([], list(category_tool.contentIds()))
self.assertNotEquals([], list(category_tool.objectValues()))
self.assertNotEquals([], list(category_tool.objectIds()))
self.assertNotEquals([], list(category_tool.searchFolder()))
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestCMFCategory))
......
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