diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-08-04 14:55:13 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-08-04 14:55:13 +0200 |
| commit | 09a719a4e6820d462fc796606cb242583ad4e79d (patch) | |
| tree | 460b698db7f8d3274a16b3baf67467a4a74b7ed4 /django/contrib/auth/tests | |
| parent | 121fd109de09ece4e263e508f9034df9b583da46 (diff) | |
Fixed #7833 -- Improved UserCreationForm password validation
Make UserCreationForm password validation similar to
SetPasswordForm and AdminPasswordChangeForm, so as the match
check is only done when both passwords are supplied.
Thanks Mitar for the suggestion.
Diffstat (limited to 'django/contrib/auth/tests')
| -rw-r--r-- | django/contrib/auth/tests/forms.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/contrib/auth/tests/forms.py b/django/contrib/auth/tests/forms.py index 2ab895804f..13b8dd1216 100644 --- a/django/contrib/auth/tests/forms.py +++ b/django/contrib/auth/tests/forms.py @@ -65,6 +65,7 @@ class UserCreationFormTest(TestCase): form = UserCreationForm(data) self.assertFalse(form.is_valid()) self.assertEqual(form['password1'].errors, required_error) + self.assertEqual(form['password2'].errors, []) def test_success(self): # The success case. |
