changeset 7:111ffe84f66a

more stubbing
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 08 Jul 2011 10:59:25 -0700
parents 29b36a390857
children 5905459d4ebe
files tests/doctest.txt
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
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)