mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 20:40:14 +03:00
Merge 8a7a587f5b
into 60dbe72a62
This commit is contained in:
commit
528d7bc840
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