wsme/wsmeext/tests
Chris Dent 8710dabb65 Improve Accept and Content-Type handling
Originally, if WSME received an Accept or Content-Type header that
was not aligned with what it was prepared to handle it would error
out with a 500 status code. This is not good behavior for a web
service.

In the process of trying to fix this it was discovered that the
content-negotiation code within WSME (the code that, in part,
looks for a suitable protocol handler for a request) and tests of
that code are incorrect, violating expected HTTP behaviors. GET
requests are passing Content-Type headers to declare the desired
type of representation in the response. This is what Accept is for.

Unfortunately the server-side code was perfectly willing to accept
this behavior. These changes correct that.

Closes-Bug: 1419110
Change-Id: I2b5c0075611490c047b27b1b43b0505fc5534b3b
2015-02-18 14:11:35 +00:00
..
__init__.py Add missing __init__.py in wsmeext.tests 2013-01-25 09:43:23 +01:00
test_extdirect.py pep8 fixes, including a declaration in tox.ini for running flake8 2013-09-05 11:15:27 -04:00
test_soap.py Fix pep8 errors 2014-04-25 14:57:05 +02:00
test_sqlalchemy_controllers.py Improve Accept and Content-Type handling 2015-02-18 14:11:35 +00:00
test_sqlalchemy_types.py Merged in wsme-sqlalchemy 2013-01-25 19:28:28 +01:00