Mercurial > hg > simpypi
comparison tests/doctest.txt @ 49:ca456e08924f
add a test for misnamed files
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 01 Mar 2012 14:14:12 -0800 |
parents | cb24b5265557 |
children | e4a97d6f2811 |
comparison
equal
deleted
inserted
replaced
48:fbba2df5c094 | 49:ca456e08924f |
---|---|
35 Upload the same package but with the wrong name:: | 35 Upload the same package but with the wrong name:: |
36 | 36 |
37 >>> shutil.rmtree(os.path.join(directory, 'HelloWorld')) | 37 >>> shutil.rmtree(os.path.join(directory, 'HelloWorld')) |
38 >>> os.listdir(directory) | 38 >>> os.listdir(directory) |
39 [] | 39 [] |
40 >>> response = testapp.post('/', upload_files=[(field, 'MisleadingName.tar.gz', contents)]) | |
41 >>> os.listdir(directory) | |
42 ['HelloWorld'] | |
43 >>> os.listdir(os.path.join(directory, 'HelloWorld')) | |
44 ['HelloWorld-0.0.tar.gz'] | |
45 |