Commit e99d47c2 authored by Sebastien Robin's avatar Sebastien Robin

we should also test a method


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2368 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 447b9de0
...@@ -150,8 +150,14 @@ identify a bank account.""" ...@@ -150,8 +150,14 @@ identify a bank account."""
tested_base_category[bc] = tested_base_category[bc] and context.isMemberOf(c) tested_base_category[bc] = tested_base_category[bc] and context.isMemberOf(c)
elif bc in membership_criterion_base_category_list: elif bc in membership_criterion_base_category_list:
tested_base_category[bc] = tested_base_category[bc] or context.isMemberOf(c) tested_base_category[bc] = tested_base_category[bc] or context.isMemberOf(c)
result = result and (0 not in tested_base_category.values())
# Test method calls
test_method_id = self.getTestMethodId()
if test_method_id is not None and result:
method = getattr(self,method)
result = result and method()
# XXX Add here additional method calls # XXX Add here additional method calls
return result and (0 not in tested_base_category.values()) return result
def asPythonExpression(): def asPythonExpression():
""" """
......
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