This commit is contained in:
Janez Kranjc 2017-04-16 00:25:27 +00:00 committed by GitHub
commit d109145460
2 changed files with 4 additions and 0 deletions

View file

@ -210,6 +210,9 @@ class TwythonAPITestCase(unittest.TestCase):
data = self.api.request(endpoint, params={'id': 210462857140252672})
if 'headers' in data:
del data['headers']
self.assertEqual({'id': 210462857140252672}, data)
@responses.activate

View file

@ -202,6 +202,7 @@ class Twython(EndpointsMixin, object):
raise TwythonError('Response was not valid JSON. \
Unable to decode.')
content['headers']=dict(response.headers)
return content
def _get_error_message(self, response):