Merge 80fa133255 into 866fb0202a
This commit is contained in:
commit
d109145460
2 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue