docker-py/tests
alex-dr e0e7404380 Fix APIError status_code property for client/server errors
requests.Response objects evaluate as falsy when the status_code
attribute is in the 400-500 range. Therefore we are assured that
prior to this change, APIError would show `is_server_error() == False`
when generated with a 500-level response and `is_client_error() == False`
when generated with a 400-level response. This is not desirable.

Added some seemingly dry (not DRY) unit tests to ensure nothing silly
slips back in here.

Signed-off-by: alex-dr <alex@datarobot.com>
2017-03-22 00:49:07 -04:00
..
integration Raise an error when passing an empty string to split_port 2017-03-09 16:12:48 -08:00
unit Fix APIError status_code property for client/server errors 2017-03-22 00:49:07 -04:00
Dockerfile-dind-certs Fix attach method over SSL connections 2015-10-14 17:29:31 -07:00
__init__.py Create tests module for setuptools test support 2013-07-13 01:07:04 -05:00
helpers.py Add support for force_update in TaskTemplate 2017-01-27 17:19:18 -08:00