Convert space-separated strings in tests/

This commit is contained in:
Chris Mayo 2020-05-29 19:40:46 +01:00
parent c71cfcbea4
commit 5df8aa085c
2 changed files with 3 additions and 3 deletions

View file

@ -26,7 +26,7 @@ from . import LinkCheckTest
NNTP_SERVER = "news.uni-stuttgart.de"
# info string returned by news server
NNTP_INFO = (
"200 news.uni-stuttgart.de InterNetNews NNRP server " "INN 2.5.2 ready (no posting)"
"200 news.uni-stuttgart.de InterNetNews NNRP server INN 2.5.2 ready (no posting)"
)
# Most free NNTP servers are slow, so don't waist a lot of time running those.
NNTP_TIMEOUT_SECS = 30

View file

@ -61,7 +61,7 @@ class TestUrl(unittest.TestCase):
def test_pathattack(self):
# Windows winamp path attack prevention.
url = "http://server/..%5c..%5c..%5c..%5c..%5c..%5c..%5c.." "%5ccskin.zip"
url = "http://server/..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5ccskin.zip"
nurl = "http://server/cskin.zip"
self.assertEqual(
linkcheck.url.url_quote(url_norm(url), encoding="iso-8859-1"), nurl
@ -108,7 +108,7 @@ class TestUrl(unittest.TestCase):
"46F9BD%2540monmouth.com%26rnum%3D2"
)
self.urlnormtest(url, url)
url = "http://redirect.alexa.com/redirect?" "http://www.offeroptimizer.com"
url = "http://redirect.alexa.com/redirect?http://www.offeroptimizer.com"
self.urlnormtest(url, url)
url = "http://www.lesgensducinema.com/photo/Philippe%20Nahon.jpg"
self.urlnormtest(url, url)