]> git.phdru.name Git - m_librarian.git/blob - tests/test_translations.py
313d6d60542209c404bdbfb3c9206fdf23996520
[m_librarian.git] / tests / test_translations.py
1 # coding: utf-8
2
3 import os
4 save_locale = os.environ.get('LC_CTYPE')
5 os.environ['LC_CTYPE'] = 'ru_RU'
6
7 from m_librarian.translations import translations  # noqa
8
9 if save_locale:
10     os.environ['LC_CTYPE'] = save_locale
11
12 _ = getattr(translations, 'ugettext', None) or translations.gettext
13
14
15 def test_translations():
16     assert _('xxx') == u'xxx'
17     assert _('File') == u'Файл'