Commit a5c804a7 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

quantity tester's getTestedProperty() should return 'quantity'.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36747 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e1b92f78
...@@ -152,3 +152,15 @@ class QuantityDivergenceTester(PropertyDivergenceTester): ...@@ -152,3 +152,15 @@ class QuantityDivergenceTester(PropertyDivergenceTester):
rounding=rounding_option)) rounding=rounding_option))
else: else:
return x==y return x==y
def getTestedProperty(self, default=None):
"""
Return a tested property.
"""
return self._baseGetTestedProperty() or 'quantity'
def getTestedPropertyList(self, default=None):
"""
Return a list of tested properties.
"""
return self._baseGetTestedPropertyList() or ['quantity',]
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