summaryrefslogtreecommitdiff
path: root/tests/test_acceptparse.py
Commit message (Collapse)AuthorAgeFilesLines
* test_acceptparse.py move to assert from noseBert JW Regeer2016-04-141-11/+10
|
* Improved test coverage for MIMEAccept wildcard matchingLucas Taylor2015-03-231-1/+4
|
* Allow wildcards to be used when comparing a MIMEAccept against an offerLucas Taylor2015-03-231-1/+60
| | | | | | - Use list comprehension instead of map for minor performance gain in ``MIMEAccept.parse`` - Fixes #155
* coverageChris McDonough2012-11-081-0/+2
|
* Ignore invalid mime wildcards in MIMEAcceptRyan Kelly2012-11-091-0/+2
|
* Fix case-sensitive behaviour in MIMEAccept and AcceptCharset.Lorenzo M. Catucci2012-06-061-0/+29
| | | | | RFC 2616 requires case-insensitive matching for media ranges and character sets.
* Fix acceptparse __str__'s rounding of q valuesGraham Higgins2012-05-121-0/+10
|
* Fix NilAccept.best_match() so an empty "offers" + default_match picks defaultChristopher Allan Webber2011-10-181-1/+1
| | | | | | | Prior to this, NilAccept.best_match([], default_match="default") threw: UnboundLocalError: local variable 'best_offer' referenced before assignment Also added a relevant test.
* remove Accept.best_matches(), add Accept.__iter__()Sergey Schetinin2011-09-261-22/+0
|
* mirror some deprecation changes from sergey-1.2-py2-only branchSergey Schetinin2011-09-241-18/+0
| | | | | | * warn_deprecation raises exceptions for 1.2 deprecations (first_match, weak_match, resp.body_file = 'x') * Request.str_* and Response.environ/request raise deprecation exceptions when touched * change deprecated_property implementation
* use direct imports, kill dead importsChris McDonough2011-09-201-2/+9
|
* make sure that `'en' in AcceptLanguage('en-gb')` and `'en_GB' in ↵Sergey Schetinin2011-09-081-1/+9
| | | | AcceptLanguage('en-gb')`
* * add AcceptCharset and AcceptLanguage subclasses instead of branching in ↵Sergey Schetinin2011-09-071-95/+68
| | | | | | | Accept.__init__ * that allows us to remove Accept.header_name * and change Accept.__repr__ to be more straightforward
* Fixed AssertionError raised by MimeAccept best_macth function whenzyegfryed2011-09-071-0/+3
| | | | using wildcard Accept header.
* refactor some special-method tests, drop someSergey Schetinin2011-06-301-6/+2
|
* fix accept matching tests to test via the public APISergey Schetinin2011-06-301-16/+11
|
* * fix accept matching for types that UA assigned zero-quality (see ↵Sergey Schetinin2011-04-101-0/+6
| | | | | | https://bitbucket.org/ianb/webob/issue/10 ) * check offers to be specific more consistently (in all matchers)
* convert acceptparse test to saner nose testsSergey Schetinin2011-04-101-384/+336
|
* This commit aggregates most of the work done at the 2011 PyCon Pyramid ↵Sergey Schetinin2011-03-221-0/+387
sprint in Atlanta GA. Only tests updates are in it, library code changes are committed separately. The sprint was organised by Chris McDonough and provided WebOb with 100% statement coverage. Participated: Alexandre Conrad, Patricio Paez, Whit Morriss, Rob Miller, Reed O'Brien, Chris Shenton, Joe Dallago, Tres Seaver, Casey Duncan, Kai Groner, Chris McDonough. The bitbucket fork on which this work was done is at https://bitbucket.org/chrism/webob-py3k and contains a detailed changelog. A big thank you to everyone who contributed!