summaryrefslogtreecommitdiff
path: root/tests/test_util
Commit message (Collapse)AuthorAgeFilesLines
* Revert change on paste.util.quoting.html_quote()Victor Stinner2015-04-231-2/+6
| | | | | On Python 2, html_quote(unicode) returns again bytes to restore backward compatibility.
* Fix paste.util.html_quote(unicode): don't encode the string to escape itVictor Stinner2015-04-221-0/+24
|
* Fix pyflakes warnings in testsVictor Stinner2015-04-221-2/+0
| | | | | * Remove unused imports * Remove unused variables
* Convert files from file format DOS to UNIXVictor Stinner2015-04-212-372/+372
|
* Python 3: use new style of raise, replace "raise class, args" with "raise ↵Cyril Roelandt2014-03-181-1/+1
| | | | class(args)"
* Added some more test cases to test_mimeparse that I have found here:Christoph Zwerschke2010-08-191-4/+60
| | | | | http://code.google.com/p/mimeparse/source/browse/trunk/testdata.json Also added a link to the project upstream.
* Added unittests for util.mimeparse and made the module more robust and ↵Christoph Zwerschke2010-08-191-0/+181
| | | | | | somewhat faster. This also closes tickets #290, #330, #370 and #381.
* convert to nose 0.11pjenvey2009-05-071-0/+0
|
* - updated httpserver to have better documentation for serve()cce2006-01-111-0/+1
| | | | | | | | | | | | - added socket_timeout option - added deamon_threads option - the port option to serve() can now be a string - now catching and re-routing most socket errors (which are routine) - converted reload.py to use a deamon thread - added comment why os._exit is used - removed raise_keyboard_interrupt option (this might need to be re-added later, just not sure what it does)
* - add support for 'dd-mon-yyyy' date formatcce2006-01-091-1/+2
|
* - better error checking in parse_datetimecce2006-01-081-33/+32
| | | | - remove unnecessary intermediaries
* - making timedate parser throw more exceptions on errorscce2006-01-081-1/+0
| | | | - cleaning up unnecessary code (that is duplicated in datetime built-in)
* - converted timedelta normalization to be fractions of hourscce2006-01-081-16/+19
| | | | - updated docstrings
* - added some nicer datetime parsing codecce2006-01-081-0/+132
|
* - wrappers are not the way to go, will be doing some changescce2005-12-271-32/+0
| | | | to httpheaders to include some of this functionality
* - added normalize_headers to paste.httpheaders which sorts a setcce2005-12-261-0/+11
| | | | | | | | | | of outgoing headers and capitalizes them to exactly match the RFC for extremely dumb user agents (which exist... unfortunately) that don't do case-insensitive matches and assume Camel-Case - added ResponseHeaderWrapper to use python properties to access headers which don't use multiple-entities (like Set-Cookie) - updated comment to header_value to explain why , separator works in most cases (but not all)
* - making HTTPHeader not be a string object so that it isn'tcce2005-12-261-2/+3
| | | | | | | | | accidently used as a key in an WSGI or header tuple - distinguishing between multi-value (but single-line) and multi-entry headers such as WWW-Authenticate and Set-Cookie as discussed on the Web-Sig - removed 'dict' like stuff from environ wrapper so that it isn't accidently used as an environ replacement
* - adding environ wrapper to paste.utilcce2005-12-261-0/+20
(response_headers are next/soon)