Test constructing a Twitter API url works as we expect
(self)
| 289 | |
| 290 | # Static methods |
| 291 | def test_construct_api_url(self): |
| 292 | """Test constructing a Twitter API url works as we expect""" |
| 293 | url = 'https://api.twitter.com/1.1/search/tweets.json' |
| 294 | constructed_url = self.api.construct_api_url(url, q='#twitter') |
| 295 | self.assertEqual(constructed_url, 'https://api.twitter.com/1.1/search/tweets.json?q=%23twitter') |
| 296 | |
| 297 | def test_encode(self): |
| 298 | """Test encoding UTF-8 works""" |
nothing calls this directly
no test coverage detected