Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
revert autopep8 blank lines
  • Loading branch information
hkwi committed Feb 23, 2017
commit 8089d972a2e0e72d20700de043ea8991e0cc1244
11 changes: 0 additions & 11 deletions test/test_hyper.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def frame_buffer():


class TestHyperConnection(object):

def test_connections_accept_hosts_and_ports(self):
c = HTTP20Connection(host='www.google.com', port=8080)
assert c.host == 'www.google.com'
Expand Down Expand Up @@ -500,7 +499,6 @@ def test_headers_with_continuation(self):

def test_send_tolerate_peer_gone(self):
class ErrorSocket(DummySocket):

def sendall(self, data):
raise socket.error(errno.EPIPE)

Expand Down Expand Up @@ -703,7 +701,6 @@ def test_incrementing_window_after_close(self):


class FrameEncoderMixin(object):

def setup_method(self, method):
self.frames = []
self.encoder = Encoder()
Expand Down Expand Up @@ -737,7 +734,6 @@ def add_data_frame(self, stream_id, data, end_stream=False):


class TestServerPush(FrameEncoderMixin):

def request(self, enable_push=True):
self.conn = HTTP20Connection('www.google.com', enable_push=enable_push)
self.conn._sock = DummySocket()
Expand Down Expand Up @@ -963,7 +959,6 @@ def test_pushed_requests_ignore_unexpected_headers(self):


class TestResponse(object):

def test_status_is_stripped_from_headers(self):
headers = HTTPHeaderMap([(':status', '200')])
resp = HTTP20Response(headers, None)
Expand Down Expand Up @@ -1114,7 +1109,6 @@ def test_response_version(self):


class TestHTTP20Adapter(object):

def test_adapter_reuses_connections(self):
a = HTTP20Adapter()
conn1 = a.get_connection('http2bin.org', 80, 'http')
Expand All @@ -1138,7 +1132,6 @@ def test_adapter_accept_client_certificate(self):


class TestUtilities(object):

def test_combining_repeated_headers(self):
test_headers = [
(b'key1', b'val1'),
Expand Down Expand Up @@ -1466,7 +1459,6 @@ def test_reset_pushed_streams_when_push_disabled(self):

# Some utility classes for the tests.
class NullEncoder(object):

@staticmethod
def encode(headers):

Expand All @@ -1483,7 +1475,6 @@ def to_str(v):


class FixedDecoder(object):

def __init__(self, result):
self.result = result

Expand All @@ -1492,7 +1483,6 @@ def decode(self, headers):


class DummySocket(object):

def __init__(self):
self.queue = []
self._buffer = BytesIO()
Expand Down Expand Up @@ -1530,7 +1520,6 @@ def fill(self):


class DummyStream(object):

def __init__(self, data, trailers=None):
self.data = data
self.data_frames = []
Expand Down