diff tests/test_ttw.txt @ 66:a2ba66be2e31

tests mysteriously fail now
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 01 Mar 2012 19:36:02 -0800
parents 83327bc715be
children cf03c3f2f98e
line wrap: on
line diff
--- a/tests/test_ttw.txt	Thu Mar 01 18:31:52 2012 -0800
+++ b/tests/test_ttw.txt	Thu Mar 01 19:36:02 2012 -0800
@@ -6,6 +6,9 @@
 The obligatory imports::
 
     >>> import os
+    >>> import shutil
+    >>> import subprocess
+    >>> import tempfile
     >>> import urllib2
     >>> from simpypi.factory import factory
 
@@ -54,6 +57,12 @@
     >>> os.listdir(os.path.join(directory, 'HelloWorld'))
     ['HelloWorld-0.0.tar.gz']
 
+Make a virtualenv to install it in::
+
+    >>> tmpdir = tempfile.mkdtemp()
+    >>> venv = create_virtualenv(tmpdir)
+    >>> shutil.rmtree(tmpdir)
+
 Shut down the server::
 
     >>> server.stop()