Added tests for URLValidator schemes.

This commit is contained in:
Sascha Peilicke 2013-10-07 16:33:47 +02:00 committed by Tim Graham
parent e527c0b6d8
commit 848101bf17
1 changed files with 3 additions and 0 deletions

View File

@ -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),