MCPcopy Index your code
hub / github.com/ryanmcgrath/twython / test_get_uses_get_method

Method test_get_uses_get_method

tests/test_core.py:170–179  ·  view source on GitHub ↗

Test Twython generic GET request works

(self)

Source from the content-addressed store, hash-verified

168
169 @responses.activate
170 def test_get_uses_get_method(self):
171 """Test Twython generic GET request works"""
172 endpoint = 'account/verify_credentials'
173 url = self.get_url(endpoint)
174 self.register_response(responses.GET, url)
175
176 self.api.get(endpoint)
177
178 self.assertEqual(1, len(responses.calls))
179 self.assertEqual(url, responses.calls[0].request.url)
180
181 @responses.activate
182 def test_post_uses_post_method(self):

Callers

nothing calls this directly

Calls 3

get_urlMethod · 0.95
register_responseMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected