Commit b354a6f3 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix wrong indentation that makes test19 skip in quiet mode.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12859 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5764e859
...@@ -697,40 +697,40 @@ class TestCMFCategory(ERP5TypeTestCase): ...@@ -697,40 +697,40 @@ class TestCMFCategory(ERP5TypeTestCase):
ZopeTestCase._print('\n '+message) ZopeTestCase._print('\n '+message)
LOG('Testing... ',0,message) LOG('Testing... ',0,message)
portal_categories = self.getCategoryTool() portal_categories = self.getCategoryTool()
organisation = self.getOrganisationModule().newContent( organisation = self.getOrganisationModule().newContent(
portal_type='Organisation', region='west/france') portal_type='Organisation', region='west/france')
get_transaction().commit() get_transaction().commit()
self.tic() self.tic()
self.assertEquals([x.getObject() for x in self.assertEquals([x.getObject() for x in
portal_categories.getCategoryMemberValueList(
portal_categories.region.west.france,
base_category='region',
strict_membership=0,
portal_type='Organisation')], [organisation])
self.assertEquals([x.getObject() for x in
portal_categories.getCategoryMemberValueList(
portal_categories.region.west.france,
base_category='region',
strict_membership=1,
portal_type='Organisation')], [organisation])
self.assertEquals([x.getObject() for x in
portal_categories.getCategoryMemberValueList(
portal_categories.region.west,
base_category='region',
strict_membership=0,
portal_type='Organisation')], [organisation])
self.assertEquals([x.getObject() for x in
portal_categories.getCategoryMemberValueList( portal_categories.getCategoryMemberValueList(
portal_categories.region.west, portal_categories.region.west.france,
base_category='region', base_category='region',
strict_membership=1, strict_membership=0,
portal_type='Organisation')], []) portal_type='Organisation')], [organisation])
self.assertEquals([x.getObject() for x in
portal_categories.getCategoryMemberValueList(
portal_categories.region.west.france,
base_category='region',
strict_membership=1,
portal_type='Organisation')], [organisation])
self.assertEquals([x.getObject() for x in
portal_categories.getCategoryMemberValueList(
portal_categories.region.west,
base_category='region',
strict_membership=0,
portal_type='Organisation')], [organisation])
self.assertEquals([x.getObject() for x in
portal_categories.getCategoryMemberValueList(
portal_categories.region.west,
base_category='region',
strict_membership=1,
portal_type='Organisation')], [])
def test_20_CategoryChildTitleAndIdItemList(self, quiet=quiet, def test_20_CategoryChildTitleAndIdItemList(self, quiet=quiet,
run=run_all_test): run=run_all_test):
......
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