some extra tests for filename
authorEmmanuel Garette <egarette@cadoles.com>
Tue, 1 Oct 2013 06:23:10 +0000 (08:23 +0200)
committerEmmanuel Garette <egarette@cadoles.com>
Tue, 1 Oct 2013 06:23:10 +0000 (08:23 +0200)
test/test_config_domain.py

index 9c5c16f..018e4c0 100644 (file)
@@ -63,6 +63,9 @@ def test_url():
     c.u = 'https://foo.com'
     c.u = 'https://foo.com/'
     raises(ValueError, "c.u = 'ftp://foo.com'")
+    raises(ValueError, "c.u = 'foo.com'")
+    raises(ValueError, "c.u = ':/foo.com'")
+    raises(ValueError, "c.u = 'foo.com/http://'")
     c.u = 'https://foo.com/index.html'
     c.u = 'https://foo.com/index.html?var=value&var2=val2'
     raises(ValueError, "c.u = 'https://foo.com/index\\n.html'")