From 3249160b43ff91d6c3447d809ecbc71d48cab171 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Mon, 16 Apr 2012 11:22:06 +0200
Subject: [PATCH] Be more informative in case of error.

Try to show interesting information about deliveries which are not solved.
---
 master/product/Vifib/tests/VifibMixin.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/master/product/Vifib/tests/VifibMixin.py b/master/product/Vifib/tests/VifibMixin.py
index ccef68c15..ad886c4af 100644
--- a/master/product/Vifib/tests/VifibMixin.py
+++ b/master/product/Vifib/tests/VifibMixin.py
@@ -369,7 +369,14 @@ class testVifibMixin(ERP5TypeTestCase):
       # clear cache
       self.clearCache()
       self.changeSkin('RSS')
-      self.assertFalse('to Solve' in self.portal.ERP5Site_viewWorklist())
+      diverged_document_list = self.portal.portal_catalog(
+        portal_type=self.portal.getPortalDeliveryTypeList(),
+        causality_state='!= solved'
+      )
+      self.assertFalse('to Solve' in self.portal.ERP5Site_viewWorklist(),
+        'There are unsolved deliveries: %s' % ','.join([
+          ' '.join((q.getTitle(), q.getPath(), q.getCausalityState())) \
+          for q in diverged_document_list]))
     finally:
       self.changeSkin(current_skin)
 
-- 
2.30.9