def _( mod=test_module, excludes=each( "*", "*/**.py", str(PATH), "**/test_mod.py", "path/to/*", "path/*/*.py", ), ): assert is_excluded_module(mod, [excludes])
def _(mod=test_module, excludes=each("abc", str(PATH.parent))): assert not is_excluded_module(mod, [excludes])