From 87ee48793dcc5c3fdb69b3767faf66101f19d579 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jeppe=20Vesterb=C3=A6k?= Date: Wed, 7 Sep 2016 10:29:32 +0200 Subject: [PATCH] add localization test case --- tests/test_localization.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/test_localization.py diff --git a/tests/test_localization.py b/tests/test_localization.py new file mode 100644 index 000000000..af82794ba --- /dev/null +++ b/tests/test_localization.py @@ -0,0 +1,12 @@ +from __future__ import unicode_literals + +from django.test import TestCase +from django.utils import translation +from django.utils.translation import ugettext as _ + + +class LocalizationTestCase(TestCase): + + def test_danish(self): + translation.activate('da') + self.assertEquals(_("Invalid token."), "Ugyldigt token.")