Commits

Robert Lehmann committed 71d563a

Check compiled message catalogs are processable with gettext.

Comments (0)

Files changed (1)

tests/test_build_gettext.py

     :license: BSD, see LICENSE for details.
 """
 
+import gettext
 import os
 from subprocess import Popen, PIPE
 
         assert (app.outdir / 'en' / 'LC_MESSAGES' / 'test_root.mo').isfile(), 'msgfmt failed'
     finally:
         os.chdir(cwd)
+
+    _ = gettext.translation('test_root', app.outdir, languages=['en']).ugettext
+    assert _("Testing various markup") == u"Testing various markup"