Removed unused translations in auth tests
This commit is contained in:
parent
07b6404d22
commit
b8c480a12b
|
@ -4,7 +4,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Django\n"
|
"Project-Id-Version: Django\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2014-05-19 15:17+0200\n"
|
"POT-Creation-Date: 2014-05-20 12:20+0200\n"
|
||||||
"PO-Revision-Date: 2010-05-13 15:35+0200\n"
|
"PO-Revision-Date: 2010-05-13 15:35+0200\n"
|
||||||
"Last-Translator: Django team\n"
|
"Last-Translator: Django team\n"
|
||||||
"Language-Team: English <en@li.org>\n"
|
"Language-Team: English <en@li.org>\n"
|
||||||
|
@ -267,14 +267,6 @@ msgstr ""
|
||||||
msgid "Password reset on %(site_name)s"
|
msgid "Password reset on %(site_name)s"
|
||||||
msgstr ""
|
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
|
#: contrib/auth/tests/test_forms.py:387
|
||||||
msgid "Enter a valid email address."
|
msgid "Enter a valid email address."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
|
@ -150,8 +150,8 @@ class AuthenticationFormTest(TestCase):
|
||||||
class PickyAuthenticationForm(AuthenticationForm):
|
class PickyAuthenticationForm(AuthenticationForm):
|
||||||
def confirm_login_allowed(self, user):
|
def confirm_login_allowed(self, user):
|
||||||
if user.username == "inactive":
|
if user.username == "inactive":
|
||||||
raise forms.ValidationError(_("This user is disallowed."))
|
raise forms.ValidationError("This user is disallowed.")
|
||||||
raise forms.ValidationError(_("Sorry, nobody's allowed in."))
|
raise forms.ValidationError("Sorry, nobody's allowed in.")
|
||||||
|
|
||||||
form = PickyAuthenticationForm(None, data)
|
form = PickyAuthenticationForm(None, data)
|
||||||
self.assertFalse(form.is_valid())
|
self.assertFalse(form.is_valid())
|
||||||
|
|
Loading…
Reference in New Issue