def _find_files(self, roots, **kwargs): """ Utility method for running FileFinder with the provided arguments. Return a sorted list of found files. The file names are processed to make path relative to the simple_filefinder dir. """ ff = FileFinder(roots, **kwargs) return sorted(list(path_relative_to_dir(path, 'simple_filefinder') for path in ff.files() if not filter_out_path(path)))
def _find_files(self, roots, **kwargs): """ Utility method for running FileFinder with the provided arguments. Return a sorted list of found files. The file names are processed to make path relative to the simple_filefinder dir. """ ff = FileFinder(roots, **kwargs) return sorted( list( path_relative_to_dir(path, 'simple_filefinder') for path in ff.files() if not filter_out_path(path)))
def assertFoundFiles(self, output_formatter, expected_list): self.assertEqual( sorted(e for e in output_formatter.output if not filter_out_path(e[1])), self._build_found_list(expected_list))
def assertFoundFiles(self, output_formatter, expected_list): self.assertEqual(sorted(e for e in output_formatter.output if not filter_out_path(e[1])), self._build_found_list(expected_list))