Mercurial > hg > MakeItSo
diff examples/doctest.txt @ 95:e74baa8e6df4
fix CLI interface a bit....write a test for it
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 11 Jan 2011 09:06:25 -0800 |
parents | 672d2d3ee322 |
children | b54898f7d8a9 |
line wrap: on
line diff
--- a/examples/doctest.txt Tue Jan 11 07:33:59 2011 -0800 +++ b/examples/doctest.txt Tue Jan 11 09:06:25 2011 -0800 @@ -102,6 +102,14 @@ 'Hello bar' >>> os.remove(buffer) +Test CLI handler: + + >>> from makeitso.cli import MakeItSoCLI + >>> cli = MakeItSoCLI(MyTemplate) + >>> buffer = tempfile.mktemp() + >>> cli(buffer) + >>> os.remove(buffer) + Test to make sure permissions are preserved. This won't work on windows:: >>> buffer = tempfile.mktemp()