mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Finished Env._finalize_core() and corresponding unit tests
This commit is contained in:
@@ -61,6 +61,14 @@ class TempDir(object):
|
||||
assert path.isfile(f) and not path.islink(f)
|
||||
return f
|
||||
|
||||
def write(self, content, *parts):
|
||||
d = self.makedirs(*parts[:-1])
|
||||
f = path.join(d, parts[-1])
|
||||
assert not path.exists(f)
|
||||
open(f, 'w').write(content)
|
||||
assert path.isfile(f) and not path.islink(f)
|
||||
return f
|
||||
|
||||
def join(self, *parts):
|
||||
return path.join(self.path, *parts)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user