diff options
| author | Claude Paroz <claude@2xlibre.net> | 2014-05-20 12:19:40 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-05-20 12:23:17 +0200 |
| commit | 3e2bb807b1127a6f57176972db5951dc6d120208 (patch) | |
| tree | dd9a2c149658bc280a69c947d0b5590baf268ee5 | |
| parent | 157575c7c8ad4e55b68077c2d10b41d596038e2e (diff) | |
[1.7.x] Removed unused translations in auth tests
Backport of b8c480a12b from master.
| -rw-r--r-- | django/contrib/auth/locale/en/LC_MESSAGES/django.po | 10 | ||||
| -rw-r--r-- | django/contrib/auth/tests/test_forms.py | 4 |
2 files changed, 3 insertions, 11 deletions
diff --git a/django/contrib/auth/locale/en/LC_MESSAGES/django.po b/django/contrib/auth/locale/en/LC_MESSAGES/django.po index 3a9446949b..57716221f5 100644 --- a/django/contrib/auth/locale/en/LC_MESSAGES/django.po +++ b/django/contrib/auth/locale/en/LC_MESSAGES/django.po @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: Django\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-05-19 15:12+0200\n" +"POT-Creation-Date: 2014-05-20 12:20+0200\n" "PO-Revision-Date: 2010-05-13 15:35+0200\n" "Last-Translator: Django team\n" "Language-Team: English <en@li.org>\n" @@ -267,14 +267,6 @@ msgstr "" msgid "Password reset on %(site_name)s" msgstr "" -#: contrib/auth/tests/test_forms.py:153 -msgid "This user is disallowed." -msgstr "" - -#: contrib/auth/tests/test_forms.py:154 -msgid "Sorry, nobody's allowed in." -msgstr "" - #: contrib/auth/tests/test_forms.py:387 msgid "Enter a valid email address." msgstr "" diff --git a/django/contrib/auth/tests/test_forms.py b/django/contrib/auth/tests/test_forms.py index 0efd5fb8b5..2d02f3a270 100644 --- a/django/contrib/auth/tests/test_forms.py +++ b/django/contrib/auth/tests/test_forms.py @@ -150,8 +150,8 @@ class AuthenticationFormTest(TestCase): class PickyAuthenticationForm(AuthenticationForm): def confirm_login_allowed(self, user): if user.username == "inactive": - raise forms.ValidationError(_("This user is disallowed.")) - raise forms.ValidationError(_("Sorry, nobody's allowed in.")) + raise forms.ValidationError("This user is disallowed.") + raise forms.ValidationError("Sorry, nobody's allowed in.") form = PickyAuthenticationForm(None, data) self.assertFalse(form.is_valid()) |
