Mercurial > hg > MakeItSo
comparison examples/doctest.txt @ 38:9739212a63c3
found a serious problem: directories stubbornly substitute into themselves
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 01 Jan 2011 22:34:29 -0800 |
parents | 7cee2869bd7b |
children | a2cdce0108e1 |
comparison
equal
deleted
inserted
replaced
37:7cee2869bd7b | 38:9739212a63c3 |
---|---|
40 >>> exampledir = os.path.join(here, 'directory-example') | 40 >>> exampledir = os.path.join(here, 'directory-example') |
41 >>> tempdir = tempfile.mkdtemp() | 41 >>> tempdir = tempfile.mkdtemp() |
42 >>> template = makeitso.PolyTemplate([exampledir], output=tempdir, interactive=False) | 42 >>> template = makeitso.PolyTemplate([exampledir], output=tempdir, interactive=False) |
43 >>> sorted(template.missing()) | 43 >>> sorted(template.missing()) |
44 ['bar', 'foo', 'subdir'] | 44 ['bar', 'foo', 'subdir'] |
45 >>> shutil.rmtree(tempdir) | 45 >>> template.substitute(foo='myfoo', bar='mybar', subdir='mysubdir') |
46 >>> os.listdir(tempdir) | |
47 |