diff options
| author | Claude Paroz <claude@2xlibre.net> | 2017-02-07 09:17:38 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2017-02-07 17:14:02 +0100 |
| commit | 3a148f958dddd97c1379081118c30fbede6b6bc4 (patch) | |
| tree | c80d2aedaac8311898d1e7557623b7a0758ec6dd /tests/template_tests/syntax_tests | |
| parent | 854f6950149e84d4c4bcbe98b7459084b44a6b9a (diff) | |
Refs #27795 -- Removed force_text from the template layer
Thanks Tim Graham for the review.
Diffstat (limited to 'tests/template_tests/syntax_tests')
| -rw-r--r-- | tests/template_tests/syntax_tests/i18n/test_blocktrans.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/template_tests/syntax_tests/i18n/test_blocktrans.py b/tests/template_tests/syntax_tests/i18n/test_blocktrans.py index 9af60e5131..d8b1e807af 100644 --- a/tests/template_tests/syntax_tests/i18n/test_blocktrans.py +++ b/tests/template_tests/syntax_tests/i18n/test_blocktrans.py @@ -17,20 +17,20 @@ class I18nBlockTransTagTests(SimpleTestCase): @setup({'i18n03': '{% load i18n %}{% blocktrans %}{{ anton }}{% endblocktrans %}'}) def test_i18n03(self): """simple translation of a variable""" - output = self.engine.render_to_string('i18n03', {'anton': b'\xc3\x85'}) + output = self.engine.render_to_string('i18n03', {'anton': 'Å'}) self.assertEqual(output, 'Å') @setup({'i18n04': '{% load i18n %}{% blocktrans with berta=anton|lower %}{{ berta }}{% endblocktrans %}'}) def test_i18n04(self): """simple translation of a variable and filter""" - output = self.engine.render_to_string('i18n04', {'anton': b'\xc3\x85'}) + output = self.engine.render_to_string('i18n04', {'anton': 'Å'}) self.assertEqual(output, 'å') @setup({'legacyi18n04': '{% load i18n %}' '{% blocktrans with anton|lower as berta %}{{ berta }}{% endblocktrans %}'}) def test_legacyi18n04(self): """simple translation of a variable and filter""" - output = self.engine.render_to_string('legacyi18n04', {'anton': b'\xc3\x85'}) + output = self.engine.render_to_string('legacyi18n04', {'anton': 'Å'}) self.assertEqual(output, 'å') @setup({'i18n05': '{% load i18n %}{% blocktrans %}xxx{{ anton }}xxx{% endblocktrans %}'}) |
