def setUp(self): self.x = envgetter.EnvGetter( defdict={'PYTHONPATH': '/ref/python/place/'}) self.y = envgetter.DirLevel('a', container=self.x, empty=True) self.y.leveldict = {'PYTHONPATH': '/foo/bar:${PYTHONPATH}'} self.ref = '/foo/bar:/ref/python/place/' self.path = 'PYTHONPATH'
def setUp(self): self.x = envgetter.DirLevel('a', empty=True) self.x.final = dict(sky='blue', grass='$sky/green', roses='red', violets='$sky') self.ref = dict(sky='blue', grass='blue/green', roses='red', violets='blue')
def setUp(self): self.x = envgetter.EnvGetter(defdict={'PATH': '/some/default/path/'}) self.y = envgetter.DirLevel('a', container=self.x, empty=True) self.y.leveldict = {'PATH': '/my/special/path:$PATH'} self.ref = '/my/special/path:/some/default/path/' self.path = 'PATH'