diff options
author | Aldo Cortesi <aldo@corte.si> | 2016-02-16 17:55:23 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@corte.si> | 2016-02-16 17:55:23 +1300 |
commit | ef8e95956d938fd4891d79fdbfa83f8a77a482cb (patch) | |
tree | ec2cbaff2087c7475774c3da7a2805db1664de70 | |
parent | 5101843683e30ff16d4b2ecd029166fcc95a1b84 (diff) | |
parent | 0fc348d211f2b4ee0e335966a1d76aaf5c3304bc (diff) | |
download | mitmproxy-ef8e95956d938fd4891d79fdbfa83f8a77a482cb.tar.gz mitmproxy-ef8e95956d938fd4891d79fdbfa83f8a77a482cb.tar.bz2 mitmproxy-ef8e95956d938fd4891d79fdbfa83f8a77a482cb.zip |
Merge pull request #949 from fimad/master
Fix failing unit tests caused by a69d223b
-rw-r--r-- | test/netlib/http/test_request.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/netlib/http/test_request.py b/test/netlib/http/test_request.py index 7a6a9665..b4ecfd4e 100644 --- a/test/netlib/http/test_request.py +++ b/test/netlib/http/test_request.py @@ -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() |