Commit 9bbdd441 authored by Jérome Perrin's avatar Jérome Perrin

more verbose assertions


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27228 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9ef32d8c
......@@ -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()
......
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