aboutsummaryrefslogtreecommitdiffstats
path: root/test/http
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-02-08 04:16:58 +0100
committerMaximilian Hils <git@maximilianhils.com>2016-02-08 04:16:58 +0100
commitfe0ed63c4a3486402f65638b476149ebba752055 (patch)
tree1739d349e75ccbb1cf2b8ef48aff885fe8711288 /test/http
parent4873547de3c65ba7c14cace4bca7b17368b2900d (diff)
downloadmitmproxy-fe0ed63c4a3486402f65638b476149ebba752055.tar.gz
mitmproxy-fe0ed63c4a3486402f65638b476149ebba752055.tar.bz2
mitmproxy-fe0ed63c4a3486402f65638b476149ebba752055.zip
add Serializable ABC
Diffstat (limited to 'test/http')
-rw-r--r--test/http/test_headers.py2
-rw-r--r--test/http/test_request.py2
-rw-r--r--test/http/test_response.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/http/test_headers.py b/test/http/test_headers.py
index 8bddc0b2..d50fee3e 100644
--- a/test/http/test_headers.py
+++ b/test/http/test_headers.py
@@ -148,5 +148,5 @@ class TestHeaders(object):
headers2 = Headers()
assert headers != headers2
- headers2.load_state(headers.get_state())
+ headers2.set_state(headers.get_state())
assert headers == headers2
diff --git a/test/http/test_request.py b/test/http/test_request.py
index 8cf69ffe..1deee387 100644
--- a/test/http/test_request.py
+++ b/test/http/test_request.py
@@ -12,7 +12,7 @@ from .test_message import _test_decoded_attr, _test_passthrough_attr
class TestRequestData(object):
def test_init(self):
- with raises(AssertionError):
+ with raises(ValueError):
treq(headers="foobar")
assert isinstance(treq(headers=None).headers, Headers)
diff --git a/test/http/test_response.py b/test/http/test_response.py
index a1f4abd7..c7d90b16 100644
--- a/test/http/test_response.py
+++ b/test/http/test_response.py
@@ -8,7 +8,7 @@ from .test_message import _test_passthrough_attr, _test_decoded_attr
class TestResponseData(object):
def test_init(self):
- with raises(AssertionError):
+ with raises(ValueError):
tresp(headers="foobar")
assert isinstance(tresp(headers=None).headers, Headers)