comparison tests/doctest.txt @ 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 089d5650d7e2
comparison
equal deleted inserted replaced
36:a02d08627d9c 37:1bdece293671
20 Upload a package:: 20 Upload a package::
21 21
22 >>> field = 'package' 22 >>> field = 'package'
23 >>> filename = 'HelloWorld-0.0.tar.gz' 23 >>> filename = 'HelloWorld-0.0.tar.gz'
24 >>> contents = file(os.path.join(here, filename)).read() 24 >>> contents = file(os.path.join(here, filename)).read()
25 >>> response = testapp.post('/', upload_files=(field, filename, package)) 25 >>> response = testapp.post('/', upload_files=[(field, filename, contents)])