From 70c5031d56c40e607efae3ed638d97a67f044e63 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Wed, 1 Apr 2015 19:47:06 +0200 Subject: [PATCH] [1.8.x] Adapted form regression test to new translations Backport of 2112b7d78 from master. --- tests/forms_tests/tests/test_regressions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/forms_tests/tests/test_regressions.py b/tests/forms_tests/tests/test_regressions.py index b1fb644d73b..bd37b218014 100644 --- a/tests/forms_tests/tests/test_regressions.py +++ b/tests/forms_tests/tests/test_regressions.py @@ -29,16 +29,16 @@ class FormsRegressionsTestCase(TestCase): # There were some problems with form translations in #3600 class SomeForm(Form): - username = CharField(max_length=10, label=ugettext_lazy('Username')) + username = CharField(max_length=10, label=ugettext_lazy('username')) f = SomeForm() - self.assertHTMLEqual(f.as_p(), '

') + self.assertHTMLEqual(f.as_p(), '

') # Translations are done at rendering time, so multi-lingual apps can define forms) with translation.override('de'): self.assertHTMLEqual(f.as_p(), '

') with translation.override('pl'): - self.assertHTMLEqual(f.as_p(), '

') + self.assertHTMLEqual(f.as_p(), '

') def test_regression_5216(self): # There was some problems with form translations in #5216