@@ -48,7 +48,6 @@ def frame_buffer():
48
48
49
49
50
50
class TestHyperConnection (object ):
51
-
52
51
def test_connections_accept_hosts_and_ports (self ):
53
52
c = HTTP20Connection (host = 'www.google.com' , port = 8080 )
54
53
assert c .host == 'www.google.com'
@@ -500,7 +499,6 @@ def test_headers_with_continuation(self):
500
499
501
500
def test_send_tolerate_peer_gone (self ):
502
501
class ErrorSocket (DummySocket ):
503
-
504
502
def sendall (self , data ):
505
503
raise socket .error (errno .EPIPE )
506
504
@@ -703,7 +701,6 @@ def test_incrementing_window_after_close(self):
703
701
704
702
705
703
class FrameEncoderMixin (object ):
706
-
707
704
def setup_method (self , method ):
708
705
self .frames = []
709
706
self .encoder = Encoder ()
@@ -737,7 +734,6 @@ def add_data_frame(self, stream_id, data, end_stream=False):
737
734
738
735
739
736
class TestServerPush (FrameEncoderMixin ):
740
-
741
737
def request (self , enable_push = True ):
742
738
self .conn = HTTP20Connection ('www.google.com' , enable_push = enable_push )
743
739
self .conn ._sock = DummySocket ()
@@ -963,7 +959,6 @@ def test_pushed_requests_ignore_unexpected_headers(self):
963
959
964
960
965
961
class TestResponse (object ):
966
-
967
962
def test_status_is_stripped_from_headers (self ):
968
963
headers = HTTPHeaderMap ([(':status' , '200' )])
969
964
resp = HTTP20Response (headers , None )
@@ -1114,7 +1109,6 @@ def test_response_version(self):
1114
1109
1115
1110
1116
1111
class TestHTTP20Adapter (object ):
1117
-
1118
1112
def test_adapter_reuses_connections (self ):
1119
1113
a = HTTP20Adapter ()
1120
1114
conn1 = a .get_connection ('http2bin.org' , 80 , 'http' )
@@ -1138,7 +1132,6 @@ def test_adapter_accept_client_certificate(self):
1138
1132
1139
1133
1140
1134
class TestUtilities (object ):
1141
-
1142
1135
def test_combining_repeated_headers (self ):
1143
1136
test_headers = [
1144
1137
(b'key1' , b'val1' ),
@@ -1466,7 +1459,6 @@ def test_reset_pushed_streams_when_push_disabled(self):
1466
1459
1467
1460
# Some utility classes for the tests.
1468
1461
class NullEncoder (object ):
1469
-
1470
1462
@staticmethod
1471
1463
def encode (headers ):
1472
1464
@@ -1483,7 +1475,6 @@ def to_str(v):
1483
1475
1484
1476
1485
1477
class FixedDecoder (object ):
1486
-
1487
1478
def __init__ (self , result ):
1488
1479
self .result = result
1489
1480
@@ -1492,7 +1483,6 @@ def decode(self, headers):
1492
1483
1493
1484
1494
1485
class DummySocket (object ):
1495
-
1496
1486
def __init__ (self ):
1497
1487
self .queue = []
1498
1488
self ._buffer = BytesIO ()
@@ -1530,7 +1520,6 @@ def fill(self):
1530
1520
1531
1521
1532
1522
class DummyStream (object ):
1533
-
1534
1523
def __init__ (self , data , trailers = None ):
1535
1524
self .data = data
1536
1525
self .data_frames = []
0 commit comments