def wantMethod(self, method):
try:<EOL><INDENT>method_name = method.__name__<EOL><DEDENT>except AttributeError:<EOL><INDENT>return False<EOL><DEDENT>if method_name.startswith('<STR_LIT:_>'):<EOL><INDENT>return False<EOL><DEDENT>declared = getattr(method, '<STR_LIT>', None)<EOL>if declared is not None:<EOL><INDENT>wanted = declared<EOL><DEDENT>else:<EOL><INDENT>wanted = self.matches(method_name)<EOL><DEDENT>plug_wants = self.plugins.wantMethod(method)<EOL>if plug_wants is not None:<EOL><INDENT>wanted = plug_wants<EOL><DEDENT>log.debug("<STR_LIT>", method, wanted)<EOL>return wanted<EOL>
Is the method a test method?