From 54072a30a8ab595b1c6315f51df64b90f2b7f4f6 Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Mon, 26 Jan 2009 09:44:04 +0000
Subject: [PATCH] Small improvements in test error rendering.   Use "%r"
 instead of "'%s'".   Use "%r" instead of "%s".   Explain a bit more what each
 result part contains.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25302 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/tests/testTranslation.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/product/ERP5/tests/testTranslation.py b/product/ERP5/tests/testTranslation.py
index f6cde3f3b2..bd4b6cd0e2 100644
--- a/product/ERP5/tests/testTranslation.py
+++ b/product/ERP5/tests/testTranslation.py
@@ -186,18 +186,18 @@ class TestTranslation(ERP5TypeTestCase):
       if error:
         for key, item_list in error_dict.items():
           if len(item_list) != 0:
-            self.logMessage('\n%s' % key.encode('utf-8'))
-            self.logMessage('\t### Potential problems ###')
+            self.logMessage('\n%r' % key.encode('utf-8'))
+            self.logMessage('\t### Conflicting workflow with common states (ie, what user can see) ###')
             for item in item_list:
               # XXX Improve rendering
               self.logMessage(
-                  "\t'%s'\t'%s'\t'%s'\t'%s'" % \
+                  "\t%r\t%r\t%r\t%r" % \
                   item)
-            self.logMessage('\n\t### Because of these ###')
+            self.logMessage('\n\t### All conflicting workflows (ie, problems asking to happen) ###')
             for item in result_dict[key]:
               # XXX Improve rendering
               self.logMessage(
-                  "\t'%s'\t'%s'\t'%s'" % \
+                  "\t%r\t%r\t%r" % \
                   item)
         self.fail(self.message)
 
-- 
2.30.9