Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.
Open
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
apply autopep8
  • Loading branch information
hkwi committed Feb 21, 2017
commit d644eabd360ae260f286eb9950d6d82acc5f7ad7
4 changes: 3 additions & 1 deletion test/test_hyper.py
Original file line number Diff line number Diff line change
Expand Up @@ -972,12 +972,14 @@ def request(self, enable_push=True):
self.conn = HTTPConnection('www.google.com', enable_push=enable_push)
self.conn._conn._sock = DummySocket()
self.conn._conn._sock.buffer = BytesIO(
self.http101 + b''.join([frame.serialize() for frame in self.frames])
self.http101 + b''.join([frame.serialize()
for frame in self.frames])
)
self.conn.request('GET', '/')


class TestResponse(object):

def test_status_is_stripped_from_headers(self):
headers = HTTPHeaderMap([(':status', '200')])
resp = HTTP20Response(headers, None)
Expand Down