comparison tests/doctest.txt @ 43:089d5650d7e2

check for the package in the right place
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 01 Mar 2012 11:59:02 -0800
parents 1bdece293671
children d9bc2a586ed4
comparison
equal deleted inserted replaced
42:6ea806412fd1 43:089d5650d7e2
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, contents)]) 25 >>> response = testapp.post('/', upload_files=[(field, filename, contents)])
26
27 Ensure that package is in the right place::
28
29 >>> os.listdir(directory)
30 ['HelloWorld']
31 >>> os.listdir(os.path.join(directory, 'HelloWorld'))
32 ['HelloWorld-0.0.tar.gz']