Lines Matching refs:pattern
143 def discover(self, start_dir, pattern='test*.py', top_level_dir=None):
146 that match the pattern will be loaded. (Using shell style pattern
154 pattern then the package will be checked for a 'load_tests' function. If
155 this exists then it will be called with loader, tests, pattern.
160 The pattern is deliberately not stored as a loader attribute so that
204 tests = list(self._find_tests(start_dir, pattern))
233 def _match_path(self, path, full_path, pattern):
235 return fnmatch(path, pattern)
237 def _find_tests(self, start_dir, pattern):
247 if not self._match_path(path, full_path, pattern):
273 if fnmatch(path, pattern):
285 for test in self._find_tests(full_path, pattern):
289 yield load_tests(self, tests, pattern)