コード例 #1
0
ファイル: test_languages.py プロジェクト: adamcw/pytvdbapi
    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))
コード例 #2
0
    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))
コード例 #3
0
ファイル: tvfetch.py プロジェクト: bendavis78/tvfetch
 def list_languages(self):
     for lang in tvdb_api.languages():
         print('{l.abbreviation}: {l.name}'.format(l=lang))
コード例 #4
0
ファイル: test_languages.py プロジェクト: adamcw/pytvdbapi
    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")
コード例 #5
0
    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")