From e3f1ebacf01c4f3ba129bf8747bb56db403a8995 Mon Sep 17 00:00:00 2001
From: Arnaud Fontaine <arnaud.fontaine@nexedi.com>
Date: Thu, 19 Nov 2015 12:11:01 +0900
Subject: [PATCH] simulation: Followup of previous commit and 0beae28 (WIP).

---
 product/ERP5/mixin/equivalence_tester.py | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/product/ERP5/mixin/equivalence_tester.py b/product/ERP5/mixin/equivalence_tester.py
index 4778d5de32..f8bfba53d4 100644
--- a/product/ERP5/mixin/equivalence_tester.py
+++ b/product/ERP5/mixin/equivalence_tester.py
@@ -243,3 +243,23 @@ class EquivalenceTesterMixin:
 
   def getTestedPropertyList(self):
     return [self.getTestedProperty()]
+
+  def getTestedPropertyTitle(self):
+    tested_property_title = getattr(self, 'tested_property_title', None)
+    if tested_property_title != None:
+      if isinstance(tested_property_title, tuple):
+        if len(tested_property_title) == 1:
+          new_value = tested_property_title[0]
+        else:
+          new_value = None
+
+        setattr(self, 'tested_property_title', new_value)
+        LOG("equivalence_tester", WARNING,
+            "%s: Migrated tested_property_title: %r => %r" % (self.getRelativeUrl(),
+                                                              tested_property_title,
+                                                              new_value))
+
+    return self._baseGetTestedPropertyTitle()
+
+  def getTestedPropertyTitleList(self):
+    return [self.getTestedPropertyTitle()]
-- 
2.30.9