pytest: crawler
This commit is contained in:
4
tests/samples/200-ok.txt
Normal file
4
tests/samples/200-ok.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
HTTP/1.1 200 OK
|
||||
content-type: text/plain
|
||||
|
||||
success
|
3
tests/samples/301-redirect-abs.txt
Normal file
3
tests/samples/301-redirect-abs.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
HTTP/1.1 301 Moved Permanently
|
||||
location: /200-ok.txt
|
||||
|
3
tests/samples/301-redirect-rel.txt
Normal file
3
tests/samples/301-redirect-rel.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
HTTP/1.1 301 Moved Permanently
|
||||
location: ./200-ok.txt
|
||||
|
3
tests/samples/301-redirect-url.txt
Normal file
3
tests/samples/301-redirect-url.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
HTTP/1.1 301 Moved Permanently
|
||||
location: http://localhost:8888/200-ok.txt
|
||||
|
4
tests/samples/308-redirect.txt
Normal file
4
tests/samples/308-redirect.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
HTTP/1.1 308 Permanent Redirect
|
||||
location: /200-ok.txt
|
||||
|
||||
/200-ok.txt
|
8
tests/samples/alternate-abs.txt
Normal file
8
tests/samples/alternate-abs.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
HTTP/1.1 200 OK
|
||||
content-type: text/html; charset=UTF-8
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head><link rel="alternate" type="application/rss+xml" href="/200-ok.txt" /></head>
|
||||
<body>meta redirect</body>
|
||||
</html>
|
4
tests/samples/enc-gb2312-header.txt
Normal file
4
tests/samples/enc-gb2312-header.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
HTTP/1.1 200 OK
|
||||
content-type: text/plain; charset=gb2312
|
||||
|
||||
<EFBFBD>ɹ<EFBFBD>
|
10
tests/samples/enc-gb2312-meta.txt
Normal file
10
tests/samples/enc-gb2312-meta.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
HTTP/1.1 200 OK
|
||||
content-type: text/html
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head><meta charset="gb2312"/></head>
|
||||
<body>
|
||||
<EFBFBD>ɹ<EFBFBD>
|
||||
</body></html>
|
4
tests/samples/enc-iso-8859-1-header.txt
Normal file
4
tests/samples/enc-iso-8859-1-header.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
HTTP/1.1 200 OK
|
||||
content-type: text/plain; charset=iso-8859-1
|
||||
|
||||
succ<EFBFBD>s
|
4
tests/samples/enc-iso-8859-1-missing.txt
Normal file
4
tests/samples/enc-iso-8859-1-missing.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
HTTP/1.1 200 OK
|
||||
content-type: text/plain
|
||||
|
||||
succ<EFBFBD>s
|
4
tests/samples/enc-utf-8-header.txt
Normal file
4
tests/samples/enc-utf-8-header.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
HTTP/1.1 200 OK
|
||||
content-type: text/plain; charset=UTF-8
|
||||
|
||||
succès
|
BIN
tests/samples/gzip.txt
Normal file
BIN
tests/samples/gzip.txt
Normal file
Binary file not shown.
3
tests/samples/header-refresh.txt
Normal file
3
tests/samples/header-refresh.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
HTTP/1.1 200 OK
|
||||
refresh: 0;url=/200-ok.txt
|
||||
|
8
tests/samples/meta-redirect-abs.txt
Normal file
8
tests/samples/meta-redirect-abs.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
HTTP/1.1 200 OK
|
||||
content-type: text/html; charset=UTF-8
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head><meta http-equiv="refresh" content="2; url = /200-ok.txt" /></head>
|
||||
<body>meta redirect</body>
|
||||
</html>
|
8
tests/samples/meta-redirect-rel.txt
Normal file
8
tests/samples/meta-redirect-rel.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
HTTP/1.1 200 OK
|
||||
content-type: text/html; charset=UTF-8
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head><meta http-equiv="refresh" content="2; url = ./200-ok.txt" /></head>
|
||||
<body>meta redirect</body>
|
||||
</html>
|
8
tests/samples/meta-redirect-url.txt
Normal file
8
tests/samples/meta-redirect-url.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
HTTP/1.1 200 OK
|
||||
content-type: text/html; charset=UTF-8
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head><meta http-equiv="refresh" content="2; url = http://localhost:8888/200-ok.txt" /></head>
|
||||
<body>meta redirect</body>
|
||||
</html>
|
9220
tests/samples/size-1MiB.txt
Normal file
9220
tests/samples/size-1MiB.txt
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user