Merge pull request #949 from fimad/master

Fix failing unit tests caused by a69d223b
This commit is contained in:
Aldo Cortesi 2016-02-16 17:55:23 +13:00
commit ef8e95956d

View File

@ -138,8 +138,8 @@ class TestRequestUtils(object):
def test_set_query(self):
request = treq(host=b"foo", headers = Headers(host=b"bar"))
request.query = ODict([])
assert request.host == b"foo"
assert request.headers["host"] == b"bar"
assert request.host == "foo"
assert request.headers["host"] == "bar"
def test_get_cookies_none(self):
request = treq()
@ -188,8 +188,8 @@ class TestRequestUtils(object):
request.path_components = []
assert request.path == "/"
request.query = ODict([])
assert request.host == b"foo"
assert request.headers["host"] == b"bar"
assert request.host == "foo"
assert request.headers["host"] == "bar"
def test_anticache(self):
request = treq()