diff options
| author | Carlton Gibson <carlton.gibson@noumenal.es> | 2019-06-13 16:39:00 +0200 |
|---|---|---|
| committer | Carlton Gibson <carlton@noumenal.es> | 2019-06-13 17:29:58 +0200 |
| commit | 1564e42ad397021093585147875a21dae1a3b3fc (patch) | |
| tree | 44bc1caa5865fa8b6a827fb6c27d852456dfed50 /tests/auth_tests/test_views.py | |
| parent | 2628ea95151feb68f43a2a740e6fb0799a94b14b (diff) | |
Refs #30512, #15042 -- Added local-only address to sanitize_email() tests cases.
email.headerregistry.parser.get_mailbox() returns a token with a `token_type` attribute.
If `token_type` is `’invalid-mailbox’` then RFC violations have been detected. Emails with only the local part, and no domain, are correctly parsed but are marked as `’invalid-mailbox’`.
As per #15042, local-only are supported, to enable sending to addresses on localhost.
sanitize_email() does not currently check `token_type`. This test is added to avoid a regression in case this is revisited in the future.
Diffstat (limited to 'tests/auth_tests/test_views.py')
0 files changed, 0 insertions, 0 deletions
