Mercurial > hg > simpypi
changeset 49:ca456e08924f
add a test for misnamed files
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 01 Mar 2012 14:14:12 -0800 |
parents | fbba2df5c094 |
children | e4a97d6f2811 |
files | tests/doctest.txt |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/doctest.txt Thu Mar 01 14:02:01 2012 -0800 +++ b/tests/doctest.txt Thu Mar 01 14:14:12 2012 -0800 @@ -37,3 +37,9 @@ >>> shutil.rmtree(os.path.join(directory, 'HelloWorld')) >>> os.listdir(directory) [] + >>> response = testapp.post('/', upload_files=[(field, 'MisleadingName.tar.gz', contents)]) + >>> os.listdir(directory) + ['HelloWorld'] + >>> os.listdir(os.path.join(directory, 'HelloWorld')) + ['HelloWorld-0.0.tar.gz'] +