mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 20:40:14 +03:00
add localization test case
This commit is contained in:
parent
5df54a711f
commit
87ee48793d
12
tests/test_localization.py
Normal file
12
tests/test_localization.py
Normal file
|
@ -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.")
|
Loading…
Reference in New Issue
Block a user