Example #1
0
 def test_search_path(self):
     first = os.environ['PATH'].split(':')[0]
     assert (first not in safe_search_path(first))
Example #2
0
 def test_search_path(self):
     first = os.environ['PATH'].split(':')[0]
     assert(first not in safe_search_path(first))
Example #3
0
 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)
Example #4
0
 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)