# Path: pgctl/configsearch.py
# def get_filesystem_id(path):
# def search_parent_directories(path='.'):
# def glob(pattern):
# def parentglob(pattern, path='.'):
# def main():


from pgctl import configsearch


class DescribeGlob:

    def it_globs_files(self, tmpdir):
        tmpdir.ensure('a/file.1')
        tmpdir.ensure('d/file.4')
        with tmpdir.as_cwd():

# Path: pgctl/configsearch.py
# def get_filesystem_id(path):
# def search_parent_directories(path='.'):
# def glob(pattern):
# def parentglob(pattern, path='.'):
# def main():


# Path: tests/unit/configsearch.py
from pgctl import configsearch



class DescribeGlob:

    def it_globs_files(self, tmpdir):
        tmpdir.ensure('a/file.1')
        tmpdir.ensure('d/file.4')
        with tmpdir.as_cwd():

            assert list(configsearch.glob('*/file.*')) == ['a/file.1', 'd/file.4']