# HG changeset patch # User Jeff Hammel # Date 1310148368 25200 # Node ID 5905459d4ebe98a229e15c43ae190406c9cd1562 # Parent 111ffe84f66a5d298f625d8f437059016f8af6a9 now have a passing if somewhat rudimentary test diff -r 111ffe84f66a -r 5905459d4ebe tests/doctest.txt --- a/tests/doctest.txt Fri Jul 08 10:59:25 2011 -0700 +++ b/tests/doctest.txt Fri Jul 08 11:06:08 2011 -0700 @@ -4,6 +4,7 @@ The obligatory imports: >>> import carton + >>> import os Make a temporary directory:: @@ -12,8 +13,11 @@ Run some tests:: - >>> 1 == 1 - True + >>> os.chdir(directory) + >>> packages = [os.path.join(here, i) for i in 'packageB', 'packageA'] + >>> carton.main(['foo'] + packages) + >>> os.listdir('.') + ['foo.py'] Clean up::