summaryrefslogtreecommitdiffstats
path: root/tests/unit/test-015-translate.py
blob: 513bcfc81ef43e5f5083418c34b8f3c1b5da9342 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- coding: utf-8 -*-

import unittest
import gettext
from pykolab import translate


class TestTranslate(unittest.TestCase):

    def test_001_default_langs(self):
        self.assertTrue(len(translate.getDefaultLangs()) > 0)

    def test_002_translate(self):
        from pykolab.translate import _
        self.assertEqual(_("Folder name"), "Folder name")

    def test_003_set_lang(self):
        from pykolab.translate import _
        self.assertEqual(_("Folder name"), "Folder name")

if __name__ == '__main__':
    unittest.main()