mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-26 06:53:44 +00:00
adjust to new repr() url
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1536 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
fc7b2b4351
commit
7a769024d8
17 changed files with 73 additions and 73 deletions
|
|
@ -1,9 +1,9 @@
|
|||
url file://%(curdir)s/linkcheck/ftests/data/anchor.html
|
||||
url 'file://%(curdir)s/linkcheck/ftests/data/anchor.html'
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/anchor.html
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/anchor.html
|
||||
valid
|
||||
|
||||
url #myid
|
||||
url '#myid'
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/anchor.html#myid
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/anchor.html
|
||||
name Bla
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
url file://%(curdir)s/linkcheck/ftests/data/base1.html
|
||||
url 'file://%(curdir)s/linkcheck/ftests/data/base1.html'
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/base1.html
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/base1.html
|
||||
valid
|
||||
|
||||
url base2.html
|
||||
url 'base2.html'
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/base2.html
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/base2.html
|
||||
valid
|
||||
|
||||
url base2.html (cached)
|
||||
url 'base2.html' (cached)
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/base2.html
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/base2.html
|
||||
valid
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
url file://%(curdir)s/linkcheck/ftests/data/base2.html
|
||||
url 'file://%(curdir)s/linkcheck/ftests/data/base2.html'
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/base2.html
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/base2.html
|
||||
valid
|
||||
|
||||
url test.txt
|
||||
url 'test.txt'
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/base/test.txt
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/base/test.txt
|
||||
baseurl file://%(curdir)s/linkcheck/ftests/data/base/
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
url file://%(curdir)s/linkcheck/ftests/data/base3.html
|
||||
url 'file://%(curdir)s/linkcheck/ftests/data/base3.html'
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/base3.html
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/base3.html
|
||||
valid
|
||||
|
||||
url test.txt
|
||||
url 'test.txt'
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/base/test.txt
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/base/test.txt
|
||||
baseurl file://%(curdir)s/linkcheck/ftests/data/base/
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
url file://%(curdir)s/linkcheck/ftests/data/file.asc
|
||||
url 'file://%(curdir)s/linkcheck/ftests/data/file.asc'
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/file.asc
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/file.asc
|
||||
valid
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
url file://%(curdir)s/linkcheck/ftests/data/file.css
|
||||
url 'file://%(curdir)s/linkcheck/ftests/data/file.css'
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/file.css
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/file.css
|
||||
valid
|
||||
|
||||
url file.html
|
||||
url 'file.html'
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/file.html
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/file.html
|
||||
valid
|
||||
|
||||
url file.html (cached)
|
||||
url 'file.html' (cached)
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/file.html
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/file.html
|
||||
valid
|
||||
|
|
|
|||
|
|
@ -1,41 +1,41 @@
|
|||
url file://%(curdir)s/linkcheck/ftests/data/file.html
|
||||
url 'file://%(curdir)s/linkcheck/ftests/data/file.html'
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/file.html
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/file.html
|
||||
valid
|
||||
|
||||
url file.html (cached)
|
||||
url 'file.html' (cached)
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/file.html
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/file.html
|
||||
name relative url
|
||||
valid
|
||||
|
||||
url file.html#isnix
|
||||
url 'file.html#isnix'
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/file.html#isnix
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/file.html
|
||||
name bad anchor
|
||||
warning anchor #isnix not found
|
||||
valid
|
||||
|
||||
url file.html#iswas
|
||||
url 'file.html#iswas'
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/file.html#iswas
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/file.html
|
||||
name good anchor
|
||||
valid
|
||||
|
||||
url #isnix (cached)
|
||||
url '#isnix' (cached)
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/file.html#isnix
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/file.html
|
||||
name bad anchor
|
||||
warning anchor #isnix not found
|
||||
valid
|
||||
|
||||
url #iswas (cached)
|
||||
url '#iswas' (cached)
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/file.html#iswas
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/file.html
|
||||
name good anchor
|
||||
valid
|
||||
|
||||
url javascript:loadthis()
|
||||
url 'javascript:loadthis()'
|
||||
cache key javascript:loadthis()
|
||||
real url javascript:loadthis()
|
||||
name javascript url
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
url file://%(curdir)s/linkcheck/ftests/data/file.txt
|
||||
url 'file://%(curdir)s/linkcheck/ftests/data/file.txt'
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/file.txt
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/file.txt
|
||||
valid
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
url file://%(curdir)s/linkcheck/ftests/data/frames.html
|
||||
url 'file://%(curdir)s/linkcheck/ftests/data/frames.html'
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/frames.html
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/frames.html
|
||||
valid
|
||||
|
||||
url frames.html (cached)
|
||||
url 'frames.html' (cached)
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/frames.html
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/frames.html
|
||||
valid
|
||||
|
||||
url frames.html (cached)
|
||||
url 'frames.html' (cached)
|
||||
cache key file://%(curdir)s/linkcheck/ftests/data/frames.html
|
||||
real url file://%(curdir)s/linkcheck/ftests/data/frames.html
|
||||
valid
|
||||
|
|
|
|||
|
|
@ -1,35 +1,35 @@
|
|||
url http://localhost:8001/linkcheck/ftests/data/http.html
|
||||
url 'http://localhost:8001/linkcheck/ftests/data/http.html'
|
||||
cache key http://localhost:8001/linkcheck/ftests/data/http.html
|
||||
real url http://localhost:8001/linkcheck/ftests/data/http.html
|
||||
valid
|
||||
|
||||
url http://www.garantiertnixgutt.bla/
|
||||
url 'http://www.garantiertnixgutt.bla/'
|
||||
cache key http://www.garantiertnixgutt.bla/
|
||||
real url http://www.garantiertnixgutt.bla/
|
||||
name bad url
|
||||
error
|
||||
|
||||
url http://localhost:8000/
|
||||
url 'http://localhost:8000/'
|
||||
cache key http://localhost:8000/
|
||||
real url http://localhost:8000/
|
||||
name ok
|
||||
error
|
||||
|
||||
url http:/localhost:8000/
|
||||
url 'http:/localhost:8000/'
|
||||
cache key http:///localhost%%3A8000/
|
||||
real url http:///localhost%%3A8000/
|
||||
name one slash
|
||||
warning Base URL is not properly normed. Normed url is 'http:///localhost%%3A8000/'.
|
||||
error
|
||||
|
||||
url http:localhost:8000/ (cached)
|
||||
url 'http:localhost:8000/' (cached)
|
||||
cache key http:///localhost%%3A8000/
|
||||
real url http:///localhost%%3A8000/
|
||||
name no slash
|
||||
warning Base URL is not properly normed. Normed url is 'http:///localhost%%3A8000/'.
|
||||
error
|
||||
|
||||
url http://
|
||||
url 'http://'
|
||||
cache key http:///
|
||||
real url http:///
|
||||
name no url
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class TestError (linkcheck.ftests.StandardTest):
|
|||
url = "hutzli:"
|
||||
nurl = linkcheck.url.url_norm(url)
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % nurl,
|
||||
"real url %s" % nurl,
|
||||
"error",
|
||||
|
|
@ -42,7 +42,7 @@ class TestError (linkcheck.ftests.StandardTest):
|
|||
url = " http://www.heise.de/"
|
||||
nurl = linkcheck.url.url_norm(url)
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % nurl,
|
||||
"real url %s" % nurl,
|
||||
"error",
|
||||
|
|
@ -51,7 +51,7 @@ class TestError (linkcheck.ftests.StandardTest):
|
|||
url = "\nhttp://www.heise.de/"
|
||||
nurl = linkcheck.url.url_norm(url)
|
||||
resultlines = [
|
||||
"url %s" % nurl,
|
||||
"url %r" % nurl,
|
||||
"cache key %s" % nurl,
|
||||
"real url %s" % nurl,
|
||||
"error",
|
||||
|
|
@ -63,7 +63,7 @@ class TestError (linkcheck.ftests.StandardTest):
|
|||
url = "http://www.heise.de/ "
|
||||
nurl = linkcheck.url.url_norm(url)
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % nurl,
|
||||
"real url %s" % nurl,
|
||||
"warning Base URL is not properly normed. Normed url is %r." % nurl,
|
||||
|
|
@ -73,7 +73,7 @@ class TestError (linkcheck.ftests.StandardTest):
|
|||
url = "http://www.heise.de/\n"
|
||||
nurl = linkcheck.url.url_norm(url)
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % nurl,
|
||||
"real url %s" % nurl,
|
||||
"warning Base URL is not properly normed. Normed url is %r." % nurl,
|
||||
|
|
@ -87,7 +87,7 @@ class TestError (linkcheck.ftests.StandardTest):
|
|||
url = "äöü?:"
|
||||
nurl = linkcheck.url.url_norm(url)
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % nurl,
|
||||
"real url %s" % nurl,
|
||||
"error",
|
||||
|
|
@ -97,7 +97,7 @@ class TestError (linkcheck.ftests.StandardTest):
|
|||
url = "?äöü?"
|
||||
nurl = linkcheck.url.url_norm(url)
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % nurl,
|
||||
"real url %s" % nurl,
|
||||
"error",
|
||||
|
|
@ -107,7 +107,7 @@ class TestError (linkcheck.ftests.StandardTest):
|
|||
url = "@³²¼][½ ³@] ¬½"
|
||||
nurl = linkcheck.url.url_norm(url)
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % nurl,
|
||||
"real url %s" % nurl,
|
||||
"error",
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ class TestFile (linkcheck.ftests.StandardTest):
|
|||
# good file
|
||||
url = "file://%(curdir)s/%(datadir)s/file.txt" % attrs
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"valid",
|
||||
|
|
@ -58,7 +58,7 @@ class TestFile (linkcheck.ftests.StandardTest):
|
|||
# bad file
|
||||
url = "file:/%(curdir)s/%(datadir)s/file.txt" % attrs
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"error",
|
||||
|
|
@ -68,7 +68,7 @@ class TestFile (linkcheck.ftests.StandardTest):
|
|||
url = "file:%(curdir)s/%(datadir)s/file.txt" % attrs
|
||||
nurl = linkcheck.url.url_norm(url)
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key file://%(curdir)s/%(datadir)s/file.txt" % attrs,
|
||||
"real url file://%(curdir)s/%(datadir)s/file.txt" % attrs,
|
||||
"warning Base URL is not properly normed. Normed url is %r." % nurl,
|
||||
|
|
@ -78,7 +78,7 @@ class TestFile (linkcheck.ftests.StandardTest):
|
|||
# good dir
|
||||
url = "file://%(curdir)s/%(datadir)s/" % attrs
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"valid",
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class TestFtp (linkcheck.ftests.StandardTest):
|
|||
# ftp two slashes
|
||||
url = "ftp://ftp.debian.org/"
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"valid",
|
||||
|
|
@ -44,7 +44,7 @@ class TestFtp (linkcheck.ftests.StandardTest):
|
|||
url = "ftp:/ftp.debian.org/"
|
||||
nurl = linkcheck.url.url_norm(url)
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % nurl,
|
||||
"real url %s" % nurl,
|
||||
"warning Base URL is not properly normed. Normed url is %r." % nurl,
|
||||
|
|
@ -55,7 +55,7 @@ class TestFtp (linkcheck.ftests.StandardTest):
|
|||
url = "ftp://ftp.debian.org"
|
||||
nurl = linkcheck.url.url_norm(url)
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % nurl,
|
||||
"real url %s" % nurl,
|
||||
"warning Base URL is not properly normed. Normed url is %r." % nurl,
|
||||
|
|
@ -66,7 +66,7 @@ class TestFtp (linkcheck.ftests.StandardTest):
|
|||
url = "ftp://ftp.debian.org/debian"
|
||||
nurl = linkcheck.url.url_norm(url)
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % nurl,
|
||||
"real url %s" % nurl,
|
||||
"warning Missing trailing directory slash in ftp url",
|
||||
|
|
@ -80,7 +80,7 @@ class TestFtp (linkcheck.ftests.StandardTest):
|
|||
url = "ftp://ftp.debian.org//debian/"
|
||||
nurl = linkcheck.url.url_norm(url)
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % nurl,
|
||||
"real url %s" % nurl,
|
||||
"warning Base URL is not properly normed. Normed url is %r." % nurl,
|
||||
|
|
@ -91,7 +91,7 @@ class TestFtp (linkcheck.ftests.StandardTest):
|
|||
url = "ftp://ftp.debian.org////////debian/"
|
||||
nurl = linkcheck.url.url_norm(url)
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % nurl,
|
||||
"real url %s" % nurl,
|
||||
"warning Base URL is not properly normed. Normed url is %r." % nurl,
|
||||
|
|
@ -101,7 +101,7 @@ class TestFtp (linkcheck.ftests.StandardTest):
|
|||
# ftp three slashes
|
||||
url = "ftp:///ftp.debian.org/"
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"error",
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ class TestHttps (linkcheck.ftests.StandardTest):
|
|||
"""test some https links"""
|
||||
url = "https://sourceforge.net/"
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"valid",
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class TestMail (linkcheck.ftests.StandardTest):
|
|||
url = self.quote("mailto:Dude <calvin@users.sf.net> , "\
|
||||
"Killer <calvin@users.sourceforge.net>?subject=bla")
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"info Verified address: <calvin> is deliverable",
|
||||
|
|
@ -40,7 +40,7 @@ class TestMail (linkcheck.ftests.StandardTest):
|
|||
url = self.quote("mailto:Bastian Kleineidam <calvin@users.sf.net>?"\
|
||||
"bcc=calvin%40users.sf.net")
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"info Verified address: <calvin> is deliverable",
|
||||
|
|
@ -49,7 +49,7 @@ class TestMail (linkcheck.ftests.StandardTest):
|
|||
self.direct(url, resultlines)
|
||||
url = self.quote("mailto:Bastian Kleineidam <calvin@users.sf.net>")
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"info Verified address: <calvin> is deliverable",
|
||||
|
|
@ -58,7 +58,7 @@ class TestMail (linkcheck.ftests.StandardTest):
|
|||
self.direct(url, resultlines)
|
||||
url = self.quote("mailto:o'hara@users.sf.net")
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"info Verified address: <o'hara> is deliverable",
|
||||
|
|
@ -68,7 +68,7 @@ class TestMail (linkcheck.ftests.StandardTest):
|
|||
url = self.quote("mailto:?to=calvin@users.sf.net&subject=blubb&"\
|
||||
"cc=calvin_cc@users.sf.net&CC=calvin_CC@users.sf.net")
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"info Verified address: <calvin> is deliverable",
|
||||
|
|
@ -81,7 +81,7 @@ class TestMail (linkcheck.ftests.StandardTest):
|
|||
"Re:%20[fm%20#11093]%20(news-admins)%20Submission%20"\
|
||||
"report%20-%20Pretty%20CoLoRs")
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"valid",
|
||||
|
|
@ -89,7 +89,7 @@ class TestMail (linkcheck.ftests.StandardTest):
|
|||
self.direct(url, resultlines)
|
||||
url = self.quote("mailto:"+"foo@foo-bar.de?subject=test")
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"valid",
|
||||
|
|
@ -102,7 +102,7 @@ class TestMail (linkcheck.ftests.StandardTest):
|
|||
url = "mailto:calvin@users.sf.net?subject=äöü"
|
||||
qurl = self.quote(url)
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % qurl,
|
||||
"real url %s" % qurl,
|
||||
"info Verified address: <calvin> is deliverable",
|
||||
|
|
@ -113,7 +113,7 @@ class TestMail (linkcheck.ftests.StandardTest):
|
|||
url = "mailto:calvin@users.sf.net?subject=Halli hallo"
|
||||
qurl = self.quote(url)
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % qurl,
|
||||
"real url %s" % qurl,
|
||||
"info Verified address: <calvin> is deliverable",
|
||||
|
|
@ -123,7 +123,7 @@ class TestMail (linkcheck.ftests.StandardTest):
|
|||
self.direct(url, resultlines)
|
||||
url = self.quote("mailto:")
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"warning No addresses found",
|
||||
|
|
@ -137,7 +137,7 @@ class TestMail (linkcheck.ftests.StandardTest):
|
|||
url = self.quote("mailto:Bastian Kleineidam "\
|
||||
"<calvin@users.sf.net?foo=bar>")
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"error",
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ class TestNews (linkcheck.ftests.StandardTest):
|
|||
# news testing
|
||||
url = "news:comp.os.linux.misc"
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"warning No NNTP server specified, skipping this URL",
|
||||
|
|
@ -46,7 +46,7 @@ class TestNews (linkcheck.ftests.StandardTest):
|
|||
# no group
|
||||
url = "news:"
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"warning No NNTP server specified, skipping this URL",
|
||||
|
|
@ -59,7 +59,7 @@ class TestNews (linkcheck.ftests.StandardTest):
|
|||
url = "snews:de.comp.os.unix.linux.misc"
|
||||
nurl = linkcheck.url.url_norm(url)
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % nurl,
|
||||
"real url %s" % nurl,
|
||||
"warning Base URL is not properly normed. Normed url is %r." % nurl,
|
||||
|
|
@ -73,7 +73,7 @@ class TestNews (linkcheck.ftests.StandardTest):
|
|||
url = "news:§$%&/´`(§%"
|
||||
qurl = self.quote(url)
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % qurl,
|
||||
"real url %s" % qurl,
|
||||
"warning Base URL is not properly normed. Normed url is %r." % qurl,
|
||||
|
|
@ -86,7 +86,7 @@ class TestNews (linkcheck.ftests.StandardTest):
|
|||
"""nttp scheme with host"""
|
||||
url = "nntp://news.yaako.com/comp.lang.python"
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"valid",
|
||||
|
|
@ -97,7 +97,7 @@ class TestNews (linkcheck.ftests.StandardTest):
|
|||
"""article span"""
|
||||
url = "nntp://news.yaako.com/comp.lang.python/1-5"
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"valid",
|
||||
|
|
@ -105,7 +105,7 @@ class TestNews (linkcheck.ftests.StandardTest):
|
|||
self.newstest(url, resultlines)
|
||||
url = "news:comp.lang.python/1-5"
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"warning No NNTP server specified, skipping this URL",
|
||||
|
|
@ -117,7 +117,7 @@ class TestNews (linkcheck.ftests.StandardTest):
|
|||
"""host but no group"""
|
||||
url = "nntp://news.yaako.com/"
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"warning No newsgroup specified in NNTP URL",
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ class TestTelnet (linkcheck.ftests.StandardTest):
|
|||
url = "telnet:"
|
||||
nurl = linkcheck.url.url_norm(url)
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % nurl,
|
||||
"real url %s" % nurl,
|
||||
"warning Base URL is not properly normed. Normed url is %r." % nurl,
|
||||
|
|
@ -37,7 +37,7 @@ class TestTelnet (linkcheck.ftests.StandardTest):
|
|||
self.direct(url, resultlines)
|
||||
url = "telnet://www.imadoofus.com"
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"error",
|
||||
|
|
@ -45,7 +45,7 @@ class TestTelnet (linkcheck.ftests.StandardTest):
|
|||
self.direct(url, resultlines)
|
||||
url = "telnet://user@www.imadoofus.com"
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"error",
|
||||
|
|
@ -53,7 +53,7 @@ class TestTelnet (linkcheck.ftests.StandardTest):
|
|||
self.direct(url, resultlines)
|
||||
url = "telnet://user:pass@www.imadoofus.com"
|
||||
resultlines = [
|
||||
"url %s" % url,
|
||||
"url %r" % url,
|
||||
"cache key %s" % url,
|
||||
"real url %s" % url,
|
||||
"error",
|
||||
|
|
|
|||
Loading…
Reference in a new issue