diff options
| author | Mathew Payne <2772944+GeekMasher@users.noreply.github.com> | 2018-11-15 19:11:03 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-11-15 14:11:24 -0500 |
| commit | 2128c508a20b440cd02599511a1087c3fe99c778 (patch) | |
| tree | 0d226f266cf4fb65a94fa618e8a9140e94104069 /tests | |
| parent | 793e26bc4f6bd7060eec364f8e9ca885ce5998ab (diff) | |
[2.1.x] Fixed #29952 -- Lowercased all passwords in contrib.auth's auth/common-passwords.txt.gz.
Backport of 26bb2611a567d43bc258aa7806eef766b7adcfe5 from master.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/auth_tests/test_validators.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auth_tests/test_validators.py b/tests/auth_tests/test_validators.py index d43efc6a3c..5422378567 100644 --- a/tests/auth_tests/test_validators.py +++ b/tests/auth_tests/test_validators.py @@ -190,6 +190,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(), |
