(attrname)
| 211 | """Return a sorted sequence of method names found within testCaseClass |
| 212 | """ |
| 213 | def shouldIncludeMethod(attrname): |
| 214 | if not attrname.startswith(self.testMethodPrefix): |
| 215 | return False |
| 216 | testFunc = getattr(testCaseClass, attrname) |
| 217 | if not callable(testFunc): |
| 218 | return False |
| 219 | fullName = f'%s.%s.%s' % ( |
| 220 | testCaseClass.__module__, testCaseClass.__qualname__, attrname |
| 221 | ) |
| 222 | return self.testNamePatterns is None or \ |
| 223 | any(fnmatchcase(fullName, pattern) for pattern in self.testNamePatterns) |
| 224 | testFnNames = list(filter(shouldIncludeMethod, dir(testCaseClass))) |
| 225 | if self.sortTestMethodsUsing: |
| 226 | testFnNames.sort(key=functools.cmp_to_key(self.sortTestMethodsUsing)) |
nothing calls this directly
no test coverage detected