Skip to content

Commit a3a7687

Browse files
committed
mypy fixes
1 parent ea4ecaf commit a3a7687

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/http/test_web_server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def test_static_web_server_serves(
200200
encoded_html_file_content = gzip.compress(html_file_content)
201201

202202
# parse response and verify
203-
response = HttpParser(httpParserTypes)
203+
response = HttpParser(httpParserTypes.RESPONSE_PARSER)
204204
response.parse(self._conn.send.call_args[0][0])
205205
self.assertEqual(response.code, b'200')
206206
self.assertEqual(response.header(b'content-type'), b'text/html')
@@ -211,6 +211,7 @@ def test_static_web_server_serves(
211211
response.header(b'content-length'),
212212
bytes_(len(encoded_html_file_content)),
213213
)
214+
assert response.body
214215
self.assertEqual(gzip.decompress(response.body), html_file_content)
215216

216217
@mock.patch('selectors.DefaultSelector')

0 commit comments

Comments
 (0)