def test_language_list(self): """The list of languages should be correct""" __languages__ = ["da", "fi", "nl", "de", "it", "es", "fr", "pl", "hu", "el", "tr", "ru", "he", "ja", "pt", "zh", "cs", "sl", "hr", "ko", "en", "sv", "no"] ll = api.languages() ld = dict((l.abbreviation, l) for l in ll) for lang in __languages__: self.assertTrue(lang in ld, "{0} should be supported".format(lang))
def test_language_list(self): """The list of languages should be correct""" __languages__ = [ "da", "fi", "nl", "de", "it", "es", "fr", "pl", "hu", "el", "tr", "ru", "he", "ja", "pt", "zh", "cs", "sl", "hr", "ko", "en", "sv", "no" ] ll = api.languages() ld = dict((l.abbreviation, l) for l in ll) for lang in __languages__: self.assertTrue(lang in ld, "{0} should be supported".format(lang))
def list_languages(self): for lang in tvdb_api.languages(): print('{l.abbreviation}: {l.name}'.format(l=lang))
def test_language_function(self): """It should be possible to obtain the list of supported languages""" ll = api.languages() self.assertTrue(len(ll) > 0, "Language list should not be empty")