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

Method test_construct_api_url

tests/test_core.py:291–295  ·  view source on GitHub ↗

Test constructing a Twitter API url works as we expect

(self)

Source from the content-addressed store, hash-verified

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"""

Callers

nothing calls this directly

Calls 1

construct_api_urlMethod · 0.80

Tested by

no test coverage detected