mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-27 01:24:42 +00:00
Add a test for an empty html file accessed over http
This commit is contained in:
parent
b1e8137da2
commit
d611564cb0
3 changed files with 6 additions and 0 deletions
0
tests/checker/data/http_empty.html
Normal file
0
tests/checker/data/http_empty.html
Normal file
5
tests/checker/data/http_empty.html.result
Normal file
5
tests/checker/data/http_empty.html.result
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
url http://localhost:%(port)d/%(datadir)s/http_empty.html
|
||||
cache key http://localhost:%(port)d/%(datadir)s/http_empty.html
|
||||
real url http://localhost:%(port)d/%(datadir)s/http_empty.html
|
||||
warning Content size is zero.
|
||||
valid
|
||||
|
|
@ -38,6 +38,7 @@ class TestHttp(HttpServerTest):
|
|||
self.file_test("http_file.html", confargs=confargs)
|
||||
self.file_test("http_utf8.html", confargs=confargs)
|
||||
self.file_test("http_url_quote.html", confargs=confargs)
|
||||
self.file_test("http_empty.html", confargs=confargs)
|
||||
|
||||
def test_status(self):
|
||||
for status in sorted(self.handler.responses.keys()):
|
||||
|
|
|
|||
Loading…
Reference in a new issue