diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-01-26 14:29:04 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-01-27 22:01:22 +0100 |
| commit | b951a7fbc12045eff104940dafaec308a543ead2 (patch) | |
| tree | 1dbf9095629c68f19110eaabe1824dc8e1c49593 /tests/defaultfilters | |
| parent | 3145ae06beed2f8c679db5d7a06907dd2a03d138 (diff) | |
Removed superfluous uses of TransRealMixin.
The translation.override context manager cleans up after itself. As a
consequence this mixin isn't needed any more in many cases.
Diffstat (limited to 'tests/defaultfilters')
| -rw-r--r-- | tests/defaultfilters/tests.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/defaultfilters/tests.py b/tests/defaultfilters/tests.py index 2dc6d9cf0c..6e309dc97a 100644 --- a/tests/defaultfilters/tests.py +++ b/tests/defaultfilters/tests.py @@ -17,7 +17,6 @@ from django.template.defaultfilters import ( urlize, urlizetrunc, wordcount, wordwrap, yesno, ) from django.test import TestCase -from django.test.utils import TransRealMixin from django.utils import six from django.utils import translation from django.utils.safestring import SafeData @@ -683,11 +682,11 @@ class DefaultFiltersTests(TestCase): self.assertEqual(striptags(123), '123') -class DefaultFiltersI18NTests(TransRealMixin, TestCase): +class DefaultFiltersI18NTests(TestCase): def test_localized_filesizeformat(self): # NOTE: \xa0 avoids wrapping between value and unit - with self.settings(USE_L10N=True), translation.override('de', deactivate=True): + with self.settings(USE_L10N=True), translation.override('de'): self.assertEqual(filesizeformat(1023), '1023\xa0Bytes') self.assertEqual(filesizeformat(1024), '1,0\xa0KB') self.assertEqual(filesizeformat(10 * 1024), '10,0\xa0KB') |
