From 5a0d746b5c04b6c732782ffbce1ca309c8da59e9 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Tue, 7 Nov 2006 10:33:38 +0000 Subject: [PATCH] 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 --- product/ERP5/tests/testERP5Category.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/product/ERP5/tests/testERP5Category.py b/product/ERP5/tests/testERP5Category.py index 1411485a55..639f961526 100644 --- a/product/ERP5/tests/testERP5Category.py +++ b/product/ERP5/tests/testERP5Category.py @@ -250,6 +250,16 @@ class TestERP5Category(ERP5TypeTestCase): self.assertEquals(len(om['2'].Base_zSearchRelatedObjectsByCategory(category_uid = om['2'].getUid())),1) 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__': framework() else: -- 2.30.9