changeset 37:1bdece293671

* fix calling signature in test * no need for a self here
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 01 Mar 2012 09:30:41 -0800
parents a02d08627d9c
children ee29001674af
files simpypi/wsgi.py tests/doctest.txt
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/simpypi/wsgi.py	Thu Mar 01 09:28:55 2012 -0800
+++ b/simpypi/wsgi.py	Thu Mar 01 09:30:41 2012 -0800
@@ -47,7 +47,7 @@
         """handle posting a package"""
 
         # get the package
-        package = self.request.POST.get('package')
+        package = request.POST.get('package')
 
         # sanity check:
         # - does the field exist?
--- a/tests/doctest.txt	Thu Mar 01 09:28:55 2012 -0800
+++ b/tests/doctest.txt	Thu Mar 01 09:30:41 2012 -0800
@@ -22,4 +22,4 @@
     >>> field = 'package'
     >>> filename = 'HelloWorld-0.0.tar.gz'
     >>> contents = file(os.path.join(here, filename)).read()
-    >>> response = testapp.post('/', upload_files=(field, filename, package))
+    >>> response = testapp.post('/', upload_files=[(field, filename, contents)])