aboutsummaryrefslogtreecommitdiffstats
path: root/test/netlib/http/test_response.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2016-10-17 18:21:23 +1300
committerGitHub <noreply@github.com>2016-10-17 18:21:23 +1300
commit00071238d2e79ff91132b7e5a3bcc8019d9191ec (patch)
tree507c346e8f8c605d428140274678fced2e6bbc16 /test/netlib/http/test_response.py
parent666c59cbfbcbd28062c201c3cb5d6cb928e90aee (diff)
parentc774a9fec93feedc37a450400a03b83f5f4cb4b9 (diff)
downloadmitmproxy-00071238d2e79ff91132b7e5a3bcc8019d9191ec.tar.gz
mitmproxy-00071238d2e79ff91132b7e5a3bcc8019d9191ec.tar.bz2
mitmproxy-00071238d2e79ff91132b7e5a3bcc8019d9191ec.zip
Merge pull request #1617 from cortesi/object
python3
Diffstat (limited to 'test/netlib/http/test_response.py')
-rw-r--r--test/netlib/http/test_response.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/netlib/http/test_response.py b/test/netlib/http/test_response.py
index e97cc419..bf08e6f2 100644
--- a/test/netlib/http/test_response.py
+++ b/test/netlib/http/test_response.py
@@ -1,4 +1,3 @@
-from __future__ import absolute_import, print_function, division
import email
@@ -11,7 +10,7 @@ from netlib.tutils import raises, tresp
from .test_message import _test_passthrough_attr, _test_decoded_attr
-class TestResponseData(object):
+class TestResponseData:
def test_init(self):
with raises(ValueError):
tresp(headers="foobar")
@@ -19,7 +18,7 @@ class TestResponseData(object):
assert isinstance(tresp(headers=()).headers, Headers)
-class TestResponseCore(object):
+class TestResponseCore:
"""
Tests for builtins and the attributes that are directly proxied from the data structure
"""
@@ -60,7 +59,7 @@ class TestResponseCore(object):
_test_decoded_attr(tresp(), "reason")
-class TestResponseUtils(object):
+class TestResponseUtils:
"""
Tests for additional convenience methods.
"""