fix bytes vs. str

This commit is contained in:
Thomas Kriechbaumer 2016-05-29 22:17:45 +02:00
parent 03167d5e71
commit e723c2d6ad
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ def treq(**kwargs):
port=22, port=22,
path=b"/path", path=b"/path",
http_version=b"HTTP/1.1", http_version=b"HTTP/1.1",
headers=Headers((("header", "qvalue"), ("content-length", "7"))), headers=Headers(((b"header", b"qvalue"), (b"content-length", b"7"))),
content=b"content" content=b"content"
) )
default.update(kwargs) default.update(kwargs)
@ -123,7 +123,7 @@ def tresp(**kwargs):
http_version=b"HTTP/1.1", http_version=b"HTTP/1.1",
status_code=200, status_code=200,
reason=b"OK", reason=b"OK",
headers=Headers((("header-response", "svalue"), ("content-length", "7"))), headers=Headers(((b"header-response", b"svalue"), (b"content-length", b"7"))),
content=b"message", content=b"message",
timestamp_start=time.time(), timestamp_start=time.time(),
timestamp_end=time.time(), timestamp_end=time.time(),