add test cases for ApiClient.select_header_accept and

ApiClient.select_header_content_type of python client.
This commit is contained in:
geekerzp
2015-05-22 15:28:36 +08:00
parent bc9abceef3
commit 245ce642ce
7 changed files with 144 additions and 86 deletions

View File

@@ -259,7 +259,7 @@ class ApiClient(object):
Return `Accept` based on an array of accepts provided
"""
if not accepts:
return 'application/json'
return
if 'application/json'.lower() in accepts:
return 'application/json'
else: