diff options
author | Will Coster <willcoster@google.com> | 2016-02-15 20:36:21 -0800 |
---|---|---|
committer | Will Coster <willcoster@google.com> | 2016-02-15 20:36:21 -0800 |
commit | 0fc348d211f2b4ee0e335966a1d76aaf5c3304bc (patch) | |
tree | ec2cbaff2087c7475774c3da7a2805db1664de70 /test/netlib | |
parent | 5101843683e30ff16d4b2ecd029166fcc95a1b84 (diff) | |
download | mitmproxy-0fc348d211f2b4ee0e335966a1d76aaf5c3304bc.tar.gz mitmproxy-0fc348d211f2b4ee0e335966a1d76aaf5c3304bc.tar.bz2 mitmproxy-0fc348d211f2b4ee0e335966a1d76aaf5c3304bc.zip |
Fix failing unit tests caused by a69d223b
Diffstat (limited to 'test/netlib')
-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() |