Commit 09e60de8 authored by Joshua Roesslein's avatar Joshua Roesslein
Browse files

Merge pull request #369 from govind-menon/master

Added supported languages from help/languages
parents 8516642d fdfcafba
......@@ -317,6 +317,15 @@ class TweepyAPITests(TweepyTestCase):
self.assertTrue(place_name_in_list('Austin, TX',
self.api.reverse_geocode(lat=30.267370168467806, long= -97.74261474609375))) # Austin, TX, USA
def testsupportedlanguages(self):
languages = self.api.supported_languages()
expected_dict = {
"name": "English",
"code": "en",
"status": "production"
}
self.assertTrue(expected_dict in languages)
class TweepyCacheTests(unittest.TestCase):
timeout = 2.0
......
......@@ -666,6 +666,13 @@ class API(object):
allowed_param = ['lat', 'long', 'name', 'contained_within']
)
""" help/languages.json """
supported_languages = bind_api(
path = '/help/languages.json',
payload_type = 'json',
require_auth = True
)
""" Internal use only """
@staticmethod
def _pack_image(filename, max_size, form_field="image"):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment