summaryrefslogtreecommitdiff
path: root/tests/auth_tests/test_validators.py
diff options
context:
space:
mode:
authorMathew Payne <2772944+GeekMasher@users.noreply.github.com>2018-11-15 19:11:03 +0000
committerTim Graham <timograham@gmail.com>2018-11-15 14:11:03 -0500
commit26bb2611a567d43bc258aa7806eef766b7adcfe5 (patch)
treebe060089e750c37274b8725eaf40b8a27b83a56b /tests/auth_tests/test_validators.py
parent9b15ff08ba638a7070fb51c1ab4c01e245556ae8 (diff)
Fixed #29952 -- Lowercased all passwords in contrib.auth's auth/common-passwords.txt.gz.
Diffstat (limited to 'tests/auth_tests/test_validators.py')
-rw-r--r--tests/auth_tests/test_validators.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auth_tests/test_validators.py b/tests/auth_tests/test_validators.py
index e50da39663..b29f64766b 100644
--- a/tests/auth_tests/test_validators.py
+++ b/tests/auth_tests/test_validators.py
@@ -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(),