Test Twython generic GET request works
(self)
| 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): |
nothing calls this directly
no test coverage detected