# HG changeset patch # User Jeff Hammel # Date 1330640052 28800 # Node ID ca456e08924f4a22d4bf812d38f08e04aad14e9a # Parent fbba2df5c0948b7906a0d0cb855678e3b5c41d81 add a test for misnamed files diff -r fbba2df5c094 -r ca456e08924f tests/doctest.txt --- 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'] +