mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Added tests for URLValidator schemes.
This commit is contained in:
parent
e527c0b6d8
commit
848101bf17
@ -145,6 +145,9 @@ TEST_DATA = (
|
||||
(URLValidator(), 'http://valid-----hyphens.com/', None),
|
||||
(URLValidator(), 'http://example.com?something=value', None),
|
||||
(URLValidator(), 'http://example.com/index.php?something=value&another=value2', None),
|
||||
(URLValidator(), 'https://example.com/', None)
|
||||
(URLValidator(), 'ftp://example.com/', None)
|
||||
(URLValidator(), 'ftps://example.com/', None)
|
||||
|
||||
(URLValidator(), 'foo', ValidationError),
|
||||
(URLValidator(), 'http://', ValidationError),
|
||||
|
Loading…
Reference in New Issue
Block a user