Fix failing unit tests caused by a69d223b

This commit is contained in:
Will Coster 2016-02-15 20:36:21 -08:00
parent 5101843683
commit 0fc348d211
1 changed files with 4 additions and 4 deletions

View File

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