mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-05 21:24:45 +00:00
Updated tests for Amazon https server.
This commit is contained in:
parent
add1838dc6
commit
94e2225acc
1 changed files with 5 additions and 2 deletions
|
|
@ -29,12 +29,15 @@ class TestHttps (LinkCheckTest):
|
|||
@need_network
|
||||
def test_https (self):
|
||||
url = u"https://www.amazon.de/"
|
||||
rurl = u"http://www.amazon.de/b"
|
||||
resultlines = [
|
||||
u"url %s" % url,
|
||||
u"cache key %s" % url,
|
||||
u"real url %s" % url,
|
||||
u"real url %s" % rurl,
|
||||
u"info Amazon servers block HTTP HEAD requests.",
|
||||
u"info Using GET method for Amazon server.",
|
||||
u"valid",
|
||||
u"info Redirected to `%s'." % rurl,
|
||||
u"warning HTTP 301 (moved permanent) encountered: you should update this link.",
|
||||
u"error",
|
||||
]
|
||||
self.direct(url, resultlines)
|
||||
|
|
|
|||
Loading…
Reference in a new issue