Fixed #29952 -- Lowercased all passwords in contrib.auth's auth/common-passwords.txt.gz.

This commit is contained in:
Mathew Payne 2018-11-15 19:11:03 +00:00 committed by Tim Graham
parent 9b15ff08ba
commit 26bb2611a5
4 changed files with 13 additions and 4 deletions

View file

@ -202,6 +202,11 @@ class CommonPasswordValidatorTest(TestCase):
self.assertEqual(cm.exception.messages, [expected_error])
self.assertEqual(cm.exception.error_list[0].code, 'password_too_common')
def test_validate_django_supplied_file(self):
validator = CommonPasswordValidator()
for password in validator.passwords:
self.assertEqual(password, password.lower())
def test_help_text(self):
self.assertEqual(
CommonPasswordValidator().get_help_text(),