mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-01 03:24:43 +00:00
split up invalid* tests
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3144 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
3e8a221110
commit
c33e6d5907
1 changed files with 5 additions and 4 deletions
|
|
@ -91,10 +91,7 @@ class TestError (linkcheck.checker.tests.LinkCheckTest):
|
|||
]
|
||||
self.direct(url, resultlines)
|
||||
|
||||
def test_invalid (self):
|
||||
"""
|
||||
Invalid syntax test.
|
||||
"""
|
||||
def test_invalid1 (self):
|
||||
# invalid scheme chars
|
||||
url = u"äöü?:"
|
||||
nurl = self.norm(url)
|
||||
|
|
@ -105,6 +102,8 @@ class TestError (linkcheck.checker.tests.LinkCheckTest):
|
|||
u"error",
|
||||
]
|
||||
self.direct(url, resultlines)
|
||||
|
||||
def test_invalid2 (self):
|
||||
# missing scheme alltogether
|
||||
url = u"?äöü?"
|
||||
nurl = self.norm(url)
|
||||
|
|
@ -115,6 +114,8 @@ class TestError (linkcheck.checker.tests.LinkCheckTest):
|
|||
u"error",
|
||||
]
|
||||
self.direct(url, resultlines)
|
||||
|
||||
def test_invalid3 (self):
|
||||
# really fucked up
|
||||
url = u"@³²¼][½ ³@] ¬½"
|
||||
nurl = self.norm(url)
|
||||
|
|
|
|||
Loading…
Reference in a new issue