diff tests/doctest.txt @ 7:111ffe84f66a

more stubbing
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 08 Jul 2011 10:59:25 -0700
parents 7ea2b5f12b2d
children 5905459d4ebe
line wrap: on
line diff
--- a/tests/doctest.txt	Fri Jul 08 10:52:53 2011 -0700
+++ b/tests/doctest.txt	Fri Jul 08 10:59:25 2011 -0700
@@ -4,9 +4,18 @@
 The obligatory imports:
 
     >>> import carton
+
+Make a temporary directory::
+
     >>> import tempfile
+    >>> directory = tempfile.mkdtemp()
 
 Run some tests::
 
-    >>> assert True
+    >>> 1 == 1
+    True
 
+Clean up::
+
+    >>> import shutil
+    >>> shutil.rmtree(directory)