def test_search_path(self): first = os.environ['PATH'].split(':')[0] assert (first not in safe_search_path(first))
def test_search_path(self): first = os.environ['PATH'].split(':')[0] assert(first not in safe_search_path(first))
def __init__(self, filename): self._filename = str(filename) with open(filename, 'r') as f: self._data = yaml.safe_load(f.read()) self._PATH = safe_search_path(self.root_path)