diff --git a/product/ERP5/tests/testInventoryAPI.py b/product/ERP5/tests/testInventoryAPI.py
index 1503a21f4bd62a36c877654b7f4cd22068637d07..b7060b4d5c96dbad973fce3645a9054f304eced6 100644
--- a/product/ERP5/tests/testInventoryAPI.py
+++ b/product/ERP5/tests/testInventoryAPI.py
@@ -2061,7 +2061,9 @@ class TestInventoryDocument(InventoryAPITestCase):
       workflow_history = self.workflow_tool.getInfoFor(ob=new_inventory, 
           name='history', wf_id=workflow_id)
       workflow_error_message = str(workflow_history[-1]['error_message'])
-      self.assertTrue(workflow_error_message.find('There is already an inventory')>=0)
+      self.assertTrue(
+          workflow_error_message.find('There is already an inventory')>=0,
+          workflow_error_message)
 
       # Add a case in order to check a bug when the other inventory at the
       # same date does not change stock values
@@ -2079,7 +2081,9 @@ class TestInventoryDocument(InventoryAPITestCase):
       workflow_history = self.workflow_tool.getInfoFor(ob=new_inventory, 
           name='history', wf_id=workflow_id)
       workflow_error_message = str(workflow_history[-1]['error_message'])
-      self.assertTrue(workflow_error_message.find('There is already an inventory')>=0)
+      self.assertTrue(
+          workflow_error_message.find('There is already an inventory')>=0,
+          workflow_error_message)
     finally:
       # remove all property sheet we added to type informations
       ttool = self.getTypesTool()