Commit 5a0d746b authored by Sebastien Robin's avatar Sebastien Robin

add one test to make sure Base_viewDict is working on categories with sub categories

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11148 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 64cf8ce7
...@@ -250,6 +250,16 @@ class TestERP5Category(ERP5TypeTestCase): ...@@ -250,6 +250,16 @@ class TestERP5Category(ERP5TypeTestCase):
self.assertEquals(len(om['2'].Base_zSearchRelatedObjectsByCategory(category_uid = om['2'].getUid())),1) self.assertEquals(len(om['2'].Base_zSearchRelatedObjectsByCategory(category_uid = om['2'].getUid())),1)
self.assertEquals(om['1'].getAbc(),om['2'].getRelativeUrl()) self.assertEquals(om['1'].getAbc(),om['2'].getRelativeUrl())
def test_08(self, quiet=0, run=run_all_test):
if not run: return
if not quiet:
self.logMessage('Make sure Base_viewDict is working for categories with sub categories')
portal_categories = self.getCategoryTool()
base_category = portal_categories.activity
self.assertTrue(len(base_category.Base_viewDict())>0)
base_category.newContent(id='toto',title='Toto')
self.assertTrue(len(base_category.Base_viewDict())>0)
if __name__ == '__main__': if __name__ == '__main__':
framework() framework()
else: else:
......
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