diff tests/test_ttw.txt @ 65:83327bc715be

make the virtualenv convenience method return more stuff
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 01 Mar 2012 18:31:52 -0800
parents 7c154953acc4
children a2ba66be2e31
line wrap: on
line diff
--- a/tests/test_ttw.txt	Thu Mar 01 18:15:34 2012 -0800
+++ b/tests/test_ttw.txt	Thu Mar 01 18:31:52 2012 -0800
@@ -5,6 +5,7 @@
 
 The obligatory imports::
 
+    >>> import os
     >>> import urllib2
     >>> from simpypi.factory import factory
 
@@ -33,6 +34,26 @@
     >>> 'Simple Index' in contents
     True
 
+
+There should be no files to start out with::
+
+    >>> os.listdir(directory)
+    []
+
+Upload a file::
+
+    >>> path = os.path.join(here, 'HelloWorld-0.0.tar.gz')
+    >>> upload = MultiPartForm()
+    >>> upload.add_file('package', path)
+    >>> response = upload.post(url)
+
+Let's see if its in the right place::
+
+    >>> os.listdir(directory)
+    ['HelloWorld']
+    >>> os.listdir(os.path.join(directory, 'HelloWorld'))
+    ['HelloWorld-0.0.tar.gz']
+
 Shut down the server::
 
     >>> server.stop()