Module ImportFrom alias Import alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Num attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Num attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Dict Str Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Num attr attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num attr Str With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Call NameLoad keyword ListLoad ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list Call NameLoad keyword ListLoad decorator_list Call NameLoad keyword ListLoad Dict Str Str Dict Str Str Str Dict Str Num ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad keyword Num attr Str With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call AttributeLoad Call NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad BinOpMod NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num attr Str With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call AttributeLoad Call NameLoad keyword Num attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad BinOpMod NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str keyword Str keyword Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr Str With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr TupleLoad Call AttributeLoad Call NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad BinOpMod NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num attr Str With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr TupleLoad Call AttributeLoad Call NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad BinOpMod NameLoad Str With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call AttributeLoad Call NameLoad keyword ListLoad Str keyword Num attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad BinOpMod NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad keyword ListLoad Str attr Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr Str With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call AttributeLoad Call NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Str Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr Str With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call AttributeLoad Call NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr Str decorator_list decorator_list
N/A __future__ unicode_literals N/A os django.contrib.auth.models User django.contrib.auth.password_validation CommonPasswordValidator MinimumLengthValidator NumericPasswordValidator UserAttributeSimilarityValidator get_default_password_validators get_password_validators password_changed password_validators_help_text_html password_validators_help_texts validate_password django.core.exceptions ValidationError django.test TestCase override_settings django.utils._os upath PasswordValidationTest N/A TestCase N/A test_get_default_password_validators N/A N/A self N/A N/A N/A validators N/A get_default_password_validators N/A N/A N/A self assertEqual N/A len validators 2 N/A N/A N/A self assertEqual N/A N/A N/A validators N/A 0 __class__ __name__ CommonPasswordValidator N/A N/A N/A self assertEqual N/A N/A N/A validators N/A 1 __class__ __name__ MinimumLengthValidator N/A N/A N/A self assertEqual N/A N/A validators N/A 1 min_length 12 N/A test_get_password_validators_custom N/A N/A self N/A N/A N/A validator_config N/A N/A NAME django.contrib.auth.password_validation.CommonPasswordValidator N/A validators N/A get_password_validators validator_config N/A N/A N/A self assertEqual N/A len validators 1 N/A N/A N/A self assertEqual N/A N/A N/A validators N/A 0 __class__ __name__ CommonPasswordValidator N/A N/A N/A self assertEqual N/A get_password_validators N/A N/A N/A test_validate_password N/A N/A self N/A N/A N/A N/A N/A self assertIsNone N/A validate_password sufficiently-long N/A msg_too_short This password is too short. It must contain at least 12 characters. N/A N/A N/A self assertRaises ValidationError cm N/A N/A N/A validate_password django4242 N/A N/A N/A self assertEqual N/A N/A cm exception messages N/A msg_too_short N/A N/A N/A self assertEqual N/A N/A N/A N/A cm exception error_list N/A 0 code password_too_short N/A N/A N/A self assertRaises ValidationError cm N/A N/A N/A validate_password password N/A N/A N/A self assertEqual N/A N/A cm exception messages N/A This password is too common. msg_too_short N/A N/A N/A self assertEqual N/A N/A N/A N/A cm exception error_list N/A 0 code password_too_common N/A N/A N/A self assertIsNone N/A validate_password password password_validators N/A N/A test_password_changed N/A N/A self N/A N/A N/A N/A N/A self assertIsNone N/A password_changed password N/A test_password_validators_help_texts N/A N/A self N/A N/A N/A help_texts N/A password_validators_help_texts N/A N/A N/A self assertEqual N/A len help_texts 2 N/A N/A N/A self assertIn 12 characters N/A help_texts N/A 1 N/A N/A N/A self assertEqual N/A password_validators_help_texts password_validators N/A N/A N/A test_password_validators_help_text_html N/A N/A self N/A N/A N/A help_text N/A password_validators_help_text_html N/A N/A N/A self assertEqual N/A N/A help_text count <li> 2 N/A N/A N/A self assertIn 12 characters help_text N/A test_empty_password_validator_help_text_html N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A password_validators_help_text_html N/A N/A override_settings AUTH_PASSWORD_VALIDATORS N/A N/A N/A override_settings AUTH_PASSWORD_VALIDATORS N/A N/A NAME django.contrib.auth.password_validation.CommonPasswordValidator N/A NAME OPTIONS django.contrib.auth.password_validation.MinimumLengthValidator N/A min_length 12 MinimumLengthValidatorTest N/A TestCase N/A test_validate N/A N/A self N/A N/A N/A expected_error This password is too short. It must contain at least %d characters. N/A N/A N/A self assertIsNone N/A N/A N/A MinimumLengthValidator validate 12345678 N/A N/A N/A self assertIsNone N/A N/A N/A MinimumLengthValidator min_length 3 validate 123 N/A N/A N/A self assertRaises ValidationError cm N/A N/A N/A N/A N/A MinimumLengthValidator validate 1234567 N/A N/A N/A self assertEqual N/A N/A cm exception messages N/A N/A expected_error 8 N/A N/A N/A self assertEqual N/A N/A N/A N/A cm exception error_list N/A 0 code password_too_short N/A N/A N/A self assertRaises ValidationError cm N/A N/A N/A N/A N/A MinimumLengthValidator min_length 3 validate 12 N/A N/A N/A self assertEqual N/A N/A cm exception messages N/A N/A expected_error 3 N/A test_help_text N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A MinimumLengthValidator get_help_text Your password must contain at least 8 characters. N/A N/A UserAttributeSimilarityValidatorTest N/A TestCase N/A test_validate N/A N/A self N/A N/A N/A user N/A N/A N/A User objects create_user username testclient password password email testclient@example.com first_name Test last_name Client N/A expected_error The password is too similar to the %s. N/A N/A N/A self assertIsNone N/A N/A N/A UserAttributeSimilarityValidator validate testclient N/A N/A N/A self assertRaises ValidationError cm N/A N/A N/A N/A N/A N/A UserAttributeSimilarityValidator validate testclient user user N/A N/A N/A self assertEqual N/A N/A cm exception messages N/A N/A expected_error username N/A N/A N/A self assertEqual N/A N/A N/A N/A cm exception error_list N/A 0 code password_too_similar N/A N/A N/A self assertRaises ValidationError cm N/A N/A N/A N/A N/A N/A UserAttributeSimilarityValidator validate example.com user user N/A N/A N/A self assertEqual N/A N/A cm exception messages N/A N/A expected_error email address N/A N/A N/A self assertRaises ValidationError cm N/A N/A N/A N/A N/A UserAttributeSimilarityValidator user_attributes N/A first_name max_similarity 0.3 validate testclient user user N/A N/A N/A self assertEqual N/A N/A cm exception messages N/A N/A expected_error first name N/A N/A N/A self assertIsNone N/A N/A N/A UserAttributeSimilarityValidator user_attributes N/A first_name validate testclient user user N/A test_help_text N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A UserAttributeSimilarityValidator get_help_text Your password can't be too similar to your other personal information. N/A N/A CommonPasswordValidatorTest N/A TestCase N/A test_validate N/A N/A self N/A N/A N/A expected_error This password is too common. N/A N/A N/A self assertIsNone N/A N/A N/A CommonPasswordValidator validate a-safe-password N/A N/A N/A self assertRaises ValidationError cm N/A N/A N/A N/A N/A CommonPasswordValidator validate godzilla N/A N/A N/A self assertEqual N/A N/A cm exception messages N/A expected_error N/A test_validate_custom_list N/A N/A self N/A N/A N/A path N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A N/A os path realpath N/A upath __file__ common-passwords-custom.txt N/A validator N/A CommonPasswordValidator password_list_path path N/A expected_error This password is too common. N/A N/A N/A self assertIsNone N/A N/A validator validate a-safe-password N/A N/A N/A self assertRaises ValidationError cm N/A N/A N/A N/A validator validate from-my-custom-list N/A N/A N/A self assertEqual N/A N/A cm exception messages N/A expected_error N/A N/A N/A self assertEqual N/A N/A N/A N/A cm exception error_list N/A 0 code password_too_common N/A test_help_text N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A CommonPasswordValidator get_help_text Your password can't be a commonly used password. N/A N/A NumericPasswordValidatorTest N/A TestCase N/A test_validate N/A N/A self N/A N/A N/A expected_error This password is entirely numeric. N/A N/A N/A self assertIsNone N/A N/A N/A NumericPasswordValidator validate a-safe-password N/A N/A N/A self assertRaises ValidationError cm N/A N/A N/A N/A N/A NumericPasswordValidator validate 42424242 N/A N/A N/A self assertEqual N/A N/A cm exception messages N/A expected_error N/A N/A N/A self assertEqual N/A N/A N/A N/A cm exception error_list N/A 0 code password_entirely_numeric N/A test_help_text N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A NumericPasswordValidator get_help_text Your password can't be entirely numeric. N/A N/A