1
0
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:
Sascha Peilicke 2013-10-07 16:33:47 +02:00 committed by Tim Graham
parent e527c0b6d8
commit 848101bf17

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