some extra tests for filename

This commit is contained in:
Emmanuel Garette 2013-10-01 08:23:10 +02:00
parent 2dcdbb137e
commit 6902ad4f18

View 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'")