summaryrefslogtreecommitdiff
path: root/tests/test_fileapp.py
Commit message (Collapse)AuthorAgeFilesLines
* make tests pass after 2031Bernhard M. Wiedemann2018-02-211-1/+1
|
* Cleanup imports in test_fileappVictor Stinner2015-04-221-12/+4
|
* Update test_fileapp according to changeset b3f56e5b43e8Victor Stinner2015-04-211-2/+2
| | | | Now HTTP status 206 is used even if the range is the full content.
* Fix fileapp on Python 3Victor Stinner2015-04-221-21/+30
| | | | | | | * Don't compare None with int * Add __next__() method (alias to next()). * HTTP body must be bytes * Don't use string.letters but an hardcoded string to not depend on the locale.
* Python 3: add parenthesis to print() to support Python 2 and Python 3Cyril Roelandt2014-03-181-1/+1
| | | | Use also "from __future__ import print_function".
* Python 3: use new names of standard library modulesCyril Roelandt2014-03-181-2/+9
| | | | Use "try/except ImportError" to try Python 2 and Python 3 names.
* don't assume CPython GC, immediately close the file handlepjenvey2008-08-221-1/+3
|
* tests for fileapp.DirectoryAppmaluke2008-05-281-1/+24
|
* Fix for FileApp replying to non-GET requests, and giving the body for HEAD ↵1.2ianb2007-02-011-0/+12
| | | | requests
* Added tests for file-related conditional requests. Added support for ↵ianb2006-07-171-0/+21
| | | | If-None-Match to DataApp. Added parsing support for multi-value headers.
* o revised the r5420 patch to be specific to the _IfModifiedSince headerpjenvey2006-06-261-2/+5
| | | | o added a test to reproduce ticket #114
* - fixed logic/definition problem /w multi-entry headers;cce2006-01-011-0/+1
| | | | | | | | | | | | | | __call__ now always returns a string value - renamed resolve to values in HTTPHeader to better reflect the public-interface for this (esp for multi-entry headers) - a few bugs in mult-entry headers - added common CGI headers to httpheaders; I know they don't really belong here, but error checking is nice - updated auth.digest and auth.basic to use httpheaders (this is what prompted the above changes) - added WWW_AUTHENTICATe header which will build a response to a digest challenge - fixed capitalization error in fileapp and added corresponding test
* - added Range.parse to httpheaderscce2005-12-291-7/+10
| | | | | | | | | - renamed Expires.time to Expires.parse for consistency - updated FileApp/DataApp to return 206 on Partial Content - all HttpHeader(environ) return strings (empty string when not found) so that checks like 'if header-part in HttpHeader(collection)' works without having to check for None - updated FileApp to use Range header (instead of having its own copy)
* - added Range: functionality to FileAppcce2005-12-251-9/+84
| | | | | | - removed unnecessary trailing whitespace in fixture.py - no longer reporting socket failures in httpserver - fixed some caching issues /w fileapp
* - got rid of unnecessary trailing spaces in httpexceptionscce2005-12-231-6/+65
| | | | | | | | | - made error messages us \r\n rather than just \n in httpexceptions to comply with various browsers - added tests to check FileApp - added support for handling 100 Continue in httpserver - fixingup dumpenviron in wsgilib to dump message body - misc changes to fileapp (mostly documentation)
* - made __call__ for an HTTPException be the same as wsgi_applicationcce2005-12-231-0/+35
- added if-modified-since logic to fileapp.py - added helper to mark file/data as cached in fileapp.py - added starter regression test for fileapp.py note: if-modified-since is still slighly broken due to timezone issues (it isn't consistenly keeping gmtime and localtime)