From ac4efac3944d180cffd0ad9d63f631dc928e1d28 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Fri, 24 Oct 2008 20:02:14 -0600 Subject: Finished Env._finalize_core() and corresponding unit tests --- tests/util.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/util.py') diff --git a/tests/util.py b/tests/util.py index 1cbc4e312..cc761ce72 100644 --- a/tests/util.py +++ b/tests/util.py @@ -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) -- cgit