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://valid-----hyphens.com/', None),
|
||||||
(URLValidator(), 'http://example.com?something=value', None),
|
(URLValidator(), 'http://example.com?something=value', None),
|
||||||
(URLValidator(), 'http://example.com/index.php?something=value&another=value2', 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(), 'foo', ValidationError),
|
||||||
(URLValidator(), 'http://', ValidationError),
|
(URLValidator(), 'http://', ValidationError),
|
||||||
|
|
Loading…
Reference in New Issue