Mercurial > hg > simpypi
diff tests/doctest.txt @ 36:a02d08627d9c
stub a test to upload a package
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 01 Mar 2012 09:28:55 -0800 |
parents | 058182b7b309 |
children | 1bdece293671 |
line wrap: on
line diff
--- a/tests/doctest.txt Thu Mar 01 09:23:29 2012 -0800 +++ b/tests/doctest.txt Thu Mar 01 09:28:55 2012 -0800 @@ -16,3 +16,10 @@ >>> app = simpypi.SimPyPI(directory) >>> testapp = TestApp(app) + +Upload a package:: + + >>> field = 'package' + >>> filename = 'HelloWorld-0.0.tar.gz' + >>> contents = file(os.path.join(here, filename)).read() + >>> response = testapp.post('/', upload_files=(field, filename, package))