tests/_helpers.py
def find_file_or_subdir_in_dir(pattern, base_dir, matching_names):
    """Commond code to return file or subdir by pattern."""
    matching_names = fnmatch.filter(matching_names, pattern)
    assert len(matching_names) == 1
    return os.path.join(base_dir, matching_names[0])
Commond code to return file or subdir by pattern.
Commond code to return file or subdir by pattern.
Commond code to return file or subdir by pattern .
def find_file_or_subdir_in_dir(pattern, base_dir, matching_names):
    matching_names = fnmatch.filter(matching_names, pattern)
    assert len(matching_names) == 1
    return os.path.join(base_dir, matching_names[0])
def find_file_or_subdir_in_dir ( pattern , base_dir , matching_names ) : matching_names = fnmatch . filter ( matching_names , pattern ) assert len ( matching_names ) == 1 return os . path . join ( base_dir , matching_names [ 0 ] )
Commond code to return file or subdir by pattern.
Commond code to return file or subdir by pattern .
"""Commond code to return file or subdir by pattern."""
pattern
base_dir
matching_names