@@ -143,6 +143,7 @@ def _query(
143143 headers = dict (requests_response .headers ),
144144 request_body = requests_response .request .body ,
145145 tell_position = requests_response .raw .tell (),
146+ content = requests_response .content ,
146147 )
147148 handle_server_errors (response = vws_response )
148149 return vws_response
@@ -250,6 +251,7 @@ def test_incorrect_no_boundary(
250251 headers = dict (requests_response .headers ),
251252 request_body = requests_response .request .body ,
252253 tell_position = requests_response .raw .tell (),
254+ content = requests_response .content ,
253255 )
254256
255257 if resp_status_code != HTTPStatus .INTERNAL_SERVER_ERROR :
@@ -326,6 +328,7 @@ def test_incorrect_with_boundary(
326328 headers = dict (requests_response .headers ),
327329 request_body = requests_response .request .body ,
328330 tell_position = requests_response .raw .tell (),
331+ content = requests_response .content ,
329332 )
330333 handle_server_errors (response = vws_response )
331334 assert not requests_response .text
@@ -397,6 +400,7 @@ def test_no_boundary(
397400 headers = dict (requests_response .headers ),
398401 request_body = requests_response .request .body ,
399402 tell_position = requests_response .raw .tell (),
403+ content = requests_response .content ,
400404 )
401405 expected_text = "RESTEASY007550: Unable to get boundary for multipart"
402406 assert requests_response .text == expected_text
@@ -456,6 +460,7 @@ def test_bogus_boundary(
456460 headers = dict (requests_response .headers ),
457461 request_body = requests_response .request .body ,
458462 tell_position = requests_response .raw .tell (),
463+ content = requests_response .content ,
459464 )
460465 handle_server_errors (response = vws_response )
461466
@@ -521,6 +526,7 @@ def test_extra_section(
521526 headers = dict (requests_response .headers ),
522527 request_body = requests_response .request .body ,
523528 tell_position = requests_response .raw .tell (),
529+ content = requests_response .content ,
524530 )
525531 handle_server_errors (response = vws_response )
526532 assert_query_success (response = vws_response )
@@ -1230,6 +1236,7 @@ def test_valid(
12301236 headers = dict (requests_response .headers ),
12311237 request_body = requests_response .request .body ,
12321238 tell_position = requests_response .raw .tell (),
1239+ content = requests_response .content ,
12331240 )
12341241 handle_server_errors (response = vws_response )
12351242 assert_query_success (response = vws_response )
@@ -1288,6 +1295,7 @@ def test_invalid(
12881295 headers = dict (requests_response .headers ),
12891296 request_body = requests_response .request .body ,
12901297 tell_position = requests_response .raw .tell (),
1298+ content = requests_response .content ,
12911299 )
12921300 handle_server_errors (response = vws_response )
12931301
@@ -2008,6 +2016,7 @@ def test_date_formats(
20082016 headers = dict (requests_response .headers ),
20092017 request_body = requests_response .request .body ,
20102018 tell_position = requests_response .raw .tell (),
2019+ content = requests_response .content ,
20112020 )
20122021 handle_server_errors (response = vws_response )
20132022 assert_query_success (response = vws_response )
0 commit comments