Commit e3f1ebac authored by Arnaud Fontaine's avatar Arnaud Fontaine

simulation: Followup of previous commit and 0beae288 (WIP).

parent e1513391
...@@ -243,3 +243,23 @@ class EquivalenceTesterMixin: ...@@ -243,3 +243,23 @@ class EquivalenceTesterMixin:
def getTestedPropertyList(self): def getTestedPropertyList(self):
return [self.getTestedProperty()] 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()]
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