From 848101bf1736d1c01eb86968e85a14c7466bb376 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Mon, 7 Oct 2013 16:33:47 +0200 Subject: [PATCH] Added tests for URLValidator schemes. --- tests/validators/tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/validators/tests.py b/tests/validators/tests.py index 9be49d77268..0beae52a834 100644 --- a/tests/validators/tests.py +++ b/tests/validators/tests.py @@ -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),