mirror of
https://github.com/django/django.git
synced 2025-10-25 22:56:12 +00:00
Fixed #4833 -- Validate email addresses with localhost as domain
This commit is contained in:
@@ -29,6 +29,8 @@ TEST_DATA = (
|
||||
(validate_email, 'example@valid-----hyphens.com', None),
|
||||
(validate_email, 'example@valid-with-hyphens.com', None),
|
||||
(validate_email, 'test@domain.with.idn.tld.उदाहरण.परीक्षा', None),
|
||||
(validate_email, 'email@localhost', None),
|
||||
(EmailValidator(whitelist=['localdomain']), 'email@localdomain', None),
|
||||
|
||||
(validate_email, None, ValidationError),
|
||||
(validate_email, '', ValidationError),
|
||||
|
||||
Reference in New Issue
Block a user