Commit 648d7020 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

cast the recorded value to list in CategoryMembershipEquivalenceTester.

parent c34fbed4
......@@ -68,6 +68,11 @@ class CategoryMembershipEquivalenceTester(Predicate, EquivalenceTesterMixin):
if getattr(decision_movement, 'isPropertyRecorded',
lambda x:False)(tested_property):
decision_value = decision_movement.getRecordedProperty(tested_property)
if not isinstance(decision_value, (list, tuple)):
if decision_value is None:
decision_value = []
else:
decision_value = [decision_value]
else:
decision_value = self._getTestedPropertyValue(decision_movement,
tested_property)
......
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