Esempio n. 1
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))
Esempio n. 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))
Esempio n. 3
0
 def list_languages(self):
     for lang in tvdb_api.languages():
         print('{l.abbreviation}: {l.name}'.format(l=lang))
Esempio n. 4
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")
Esempio n. 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")