From 6ebbe94ff54fd4e8dbf3aa6825334ba55edfe356 Mon Sep 17 00:00:00 2001
From: Nicolas Dumazet <nicolas.dumazet@nexedi.com>
Date: Mon, 31 Jan 2011 13:05:03 +0000
Subject: [PATCH] simplify code

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42812 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/tests/ERP5TypeTestCase.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Type/tests/ERP5TypeTestCase.py b/product/ERP5Type/tests/ERP5TypeTestCase.py
index 8b53621bbc..91a800dc94 100644
--- a/product/ERP5Type/tests/ERP5TypeTestCase.py
+++ b/product/ERP5Type/tests/ERP5TypeTestCase.py
@@ -880,7 +880,7 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
       for url, bt_title in business_template_list:
         start = time.time()
         get_install_kw = False
-        if bt_title in [x.getTitle() for x in template_tool.getInstalledBusinessTemplateList()]:
+        if bt_title in template_tool.getInstalledBusinessTemplateTitleList():
           if update_business_templates:
             if not quiet:
               ZopeTestCase._print('Updating %s business template ... ' % bt_title)
-- 
2.30.9