diff options
Diffstat (limited to 'test/test_babelplugin.py')
| -rw-r--r-- | test/test_babelplugin.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_babelplugin.py b/test/test_babelplugin.py index b216bdb..6b867ee 100644 --- a/test/test_babelplugin.py +++ b/test/test_babelplugin.py @@ -6,13 +6,13 @@ try: from mako.ext.babelplugin import extract except: babel = None - + import os class ExtractMakoTestCase(TemplateTest): @skip_if(lambda: not babel, 'babel not installed: skipping babelplugin test') - + def test_extract(self): mako_tmpl = open(os.path.join(template_base, 'gettext.mako')) messages = list(extract(mako_tmpl, {'_': None, 'gettext': None, @@ -37,6 +37,7 @@ class ExtractMakoTestCase(TemplateTest): (71, '_', 'P.S. byebye', []), (77, '_', 'Top', []), (83, '_', 'foo', []), + (83, '_', 'hoho', []), (85, '_', 'bar', []) ] self.assertEqual(expected, messages) |
