File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ def test_static_web_server_serves(
200
200
encoded_html_file_content = gzip .compress (html_file_content )
201
201
202
202
# parse response and verify
203
- response = HttpParser (httpParserTypes )
203
+ response = HttpParser (httpParserTypes . RESPONSE_PARSER )
204
204
response .parse (self ._conn .send .call_args [0 ][0 ])
205
205
self .assertEqual (response .code , b'200' )
206
206
self .assertEqual (response .header (b'content-type' ), b'text/html' )
@@ -211,6 +211,7 @@ def test_static_web_server_serves(
211
211
response .header (b'content-length' ),
212
212
bytes_ (len (encoded_html_file_content )),
213
213
)
214
+ assert response .body
214
215
self .assertEqual (gzip .decompress (response .body ), html_file_content )
215
216
216
217
@mock .patch ('selectors.DefaultSelector' )
You can’t perform that action at this time.
0 commit comments