From 908b13af96c4d54ebf68f0086a3200337ba3cb1b Mon Sep 17 00:00:00 2001
From: Rafael Monnerat <rafael@nexedi.com>
Date: Sat, 19 Jun 2010 03:05:00 +0000
Subject: [PATCH] Improve comments and test name to provide a bit more clear
 information.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36460 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/tests/testBusinessTemplate.py | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/product/ERP5/tests/testBusinessTemplate.py b/product/ERP5/tests/testBusinessTemplate.py
index ffabc33fcd..54d5787d3b 100644
--- a/product/ERP5/tests/testBusinessTemplate.py
+++ b/product/ERP5/tests/testBusinessTemplate.py
@@ -6752,13 +6752,18 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
     self.assertEquals(self.portal.exported_path,
         self.portal.portal_catalog.getResultValue(uid=uid))
 
-  def test_export_bt5_with_portal_type_actions(self):
+  def test_build_and_export_bt5_into_same_transaction(self):
     """
-      The bt5 must be exported correctly.
-      Without fail exporting the Portal Type Actions.
+      Copy, build and export a business template into the same transaction.
+
+      Make sure all objects can be exported, when build() and export() are
+      into the same transaction. 
     """
     portal = self.getPortalObject()
     template_tool = portal.portal_templates
+    # Use erp5_barcode because it contains ActionTemplateItem, which seems to
+    # cause problems to be export. Maybe create a test bt5 with all items could
+    # be more appropriated.
     bt5obj = portal.portal_catalog.getResultValue(portal_type='Business Template',
                                                   title='erp5_barcode')
     # it is required to copy and paste to be able to export it
@@ -6771,7 +6776,6 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
     new_bt5_obj.build()
     template_tool.export(new_bt5_obj)
 
-
 def test_suite():
   suite = unittest.TestSuite()
   suite.addTest(unittest.makeSuite(TestBusinessTemplate))
-- 
2.30.9