some extra tests for filename
This commit is contained in:
parent
2dcdbb137e
commit
6902ad4f18
1 changed files with 3 additions and 0 deletions
|
@ -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'")
|
||||
|
|
Loading…
Reference in a new issue