diff tests/doctest.txt @ 8:5905459d4ebe

now have a passing if somewhat rudimentary test
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 08 Jul 2011 11:06:08 -0700
parents 111ffe84f66a
children aa673036ecc1
line wrap: on
line diff
--- 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::