From 1048bcf4905b14241fbff36cc6b46b6a90ab13b2 Mon Sep 17 00:00:00 2001 From: Yusei Tahara <yusei@nexedi.com> Date: Thu, 12 Jun 2008 15:42:36 +0000 Subject: [PATCH] Fixed a wrong setup. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21556 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testContributionRegistryTool.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/product/ERP5/tests/testContributionRegistryTool.py b/product/ERP5/tests/testContributionRegistryTool.py index e634ba909c..1fe4ab8704 100644 --- a/product/ERP5/tests/testContributionRegistryTool.py +++ b/product/ERP5/tests/testContributionRegistryTool.py @@ -77,19 +77,19 @@ return predicate.getDestinationPortalType() def setUpMimeType(self): portal_categories = self.portal.portal_categories - if getattr(portal_categories, 'mime_type', None): + if getattr(portal_categories, 'mime_type', None) is None: mime_type = portal_categories.newContent(portal_type='Base Category', id='mime_type') text = mime_type.newContent(portal_type='Category', id='text') - html = html.newContent(portal_type='Category', id='html') + text.newContent(portal_type='Category', id='html') get_transaction().commit() self.tic() - if getattr(portal_categories, 'mime_type', None): + if getattr(portal_categories, 'mime_type', None) is None: mime_type = portal_categories.newContent(portal_type='Base Category', id='mime_type') - text = mime_type.newContent(portal_type='Category', id='message') - html = html.newContent(portal_type='Category', id='rfc822') + message = mime_type.newContent(portal_type='Category', id='message') + message.newContent(portal_type='Category', id='rfc822') get_transaction().commit() self.tic() -- 2.30.9