Refs #22123 -- Added more URLValidator test for invalid IPv6 literals.

This commit is contained in:
Mariusz Felisiak 2021-08-06 10:58:57 +02:00
parent 5d4f21b16f
commit 61d92c650f
1 changed files with 3 additions and 0 deletions

View File

@ -294,6 +294,9 @@ TEST_DATA = [
(validate_email, 'email@[2001:db8::12345]', ValidationError),
(validate_email, 'email@[2001:db8:0:0:0:0:1]', ValidationError),
(validate_email, 'email@[::ffff:127.0.0.256]', ValidationError),
(validate_email, 'email@[2001:dg8::1]', ValidationError),
(validate_email, 'email@[2001:dG8:0:0:0:0:0:1]', ValidationError),
(validate_email, 'email@[::fTzF:127.0.0.1]', ValidationError),
(validate_email, 'example@invalid-.com', ValidationError),
(validate_email, 'example@-invalid.com', ValidationError),
(validate_email, 'example@invalid.com-', ValidationError),