def _( root: Path = project, search=each("x/y/z", "a.py", "a/b.py", "a/b/c/d/e.py"), mod="a/b/c/d/e.py", ): module_path = root / mod assert not handled_within(module_path, [root / search])
def _( root: Path = project, search=each("", "/", "a", "a/b", "a/b/c"), mod="a/b/c/d/e.py", ): module_path = root / mod assert handled_within(module_path, [root / search])