def test_file_search2(self): """Function: test_file_search2 Description: Test with files matching. Arguments: """ self.assertEqual( gen_libs.filename_search(self.dir_path, self.file_str3), self.results3)
def test_file_search_path(self): """Function: test_file_search_path Description: Test with files matching with path included. Arguments: """ self.assertEqual( gen_libs.filename_search(self.dir_path, self.file_str, True).sort(), self.results4.sort())
def test_no_file_search(self, mock_list): """Function: test_no_file_search Description: Test with no files matching. Arguments: """ mock_list.return_value = self.list_files self.assertEqual( gen_libs.filename_search(self.dir_path, self.file_str2), self.results)
def test_file_search_path(self, mock_list): """Function: test_file_search_path Description: Test with files matching with path included. Arguments: """ mock_list.return_value = self.list_files self.assertEqual( gen_libs.filename_search(self.dir_path, self.file_str, True), self.results4)