MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / shouldIncludeMethod

Method shouldIncludeMethod

tests/runner.py:21–28  ·  view source on GitHub ↗
(attrname)

Source from the content-addressed store, hash-verified

19 Customize this code to allow you to filter test methods through testNamePatterns.
20 """
21 def shouldIncludeMethod(attrname):
22 if not attrname.startswith(self.testMethodPrefix):
23 return False
24 testFunc = getattr(testCaseClass, attrname)
25 if not callable(testFunc):
26 return False
27 return self.testNamePatterns is None or \
28 any(fnmatchcase(attrname, pattern) for pattern in self.testNamePatterns)
29
30 testFnNames = list(filter(shouldIncludeMethod, dir(testCaseClass)))
31 if self.sortTestMethodsUsing:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected