diff --git a/test/vanilla/AcceptanceTests/asynctests/test_file.py b/test/vanilla/AcceptanceTests/asynctests/test_file.py index 37091f1a36f..bd0ed353092 100644 --- a/test/vanilla/AcceptanceTests/asynctests/test_file.py +++ b/test/vanilla/AcceptanceTests/asynctests/test_file.py @@ -63,7 +63,7 @@ async def test_files(self): with io.BytesIO() as file_handle: stream = await client.files.get_file() total = len(stream) - assert not stream.response._released + assert not stream.response.internal_response._released async for data in stream: assert 0 < len(data) <= stream.block_size @@ -71,7 +71,7 @@ async def test_files(self): print("Downloading... {}%".format(int(file_length*100/total))) file_handle.write(data) - assert stream.response._released + assert stream.response.internal_response._released assert file_length != 0 sample_file = realpath( @@ -87,13 +87,13 @@ async def test_files(self): with io.BytesIO() as file_handle: stream = await client.files.get_empty_file() assert len(stream) == 0 - assert not stream.response._released + assert not stream.response.internal_response._released async for data in stream: file_length += len(data) file_handle.write(data) - assert stream.response._released + assert stream.response.internal_response._released assert file_length == 0 @pytest.mark.asyncio @@ -114,7 +114,7 @@ async def test_files_long_running(self): async def test_files_raw(self, client): def test_callback(response, data_stream, headers): - assert not data_stream.response._released + assert not data_stream.response.internal_response._released return data_stream file_length = 0 @@ -126,7 +126,7 @@ def test_callback(response, data_stream, headers): file_length += len(data) file_handle.write(data) - assert stream.response._released + assert stream.response.internal_response._released assert file_length != 0 sample_file = realpath( @@ -144,7 +144,7 @@ def test_callback(response, data_stream, headers): file_length += len(data) file_handle.write(data) - assert stream.response._released + assert stream.response.internal_response._released assert file_length == 0 diff --git a/test/vanilla/AcceptanceTests/test_file.py b/test/vanilla/AcceptanceTests/test_file.py index 86d92760622..bfedbbe2be3 100644 --- a/test/vanilla/AcceptanceTests/test_file.py +++ b/test/vanilla/AcceptanceTests/test_file.py @@ -62,7 +62,7 @@ def test_files(self): with io.BytesIO() as file_handle: stream = client.files.get_file() total = len(stream) - assert not stream.response._content_consumed + assert not stream.response.internal_response._content_consumed for data in stream: assert 0 < len(data) <= stream.block_size @@ -85,7 +85,7 @@ def test_files(self): with io.BytesIO() as file_handle: stream = client.files.get_empty_file() assert len(stream) == 0 - assert not stream.response._content_consumed + assert not stream.response.internal_response._content_consumed for data in stream: file_length += len(data) @@ -107,7 +107,7 @@ def test_files_long_running(self): def test_files_raw(self, client): def test_callback(response, data_stream, headers): - assert not data_stream.response._content_consumed + assert not data_stream.response.internal_response._content_consumed return data_stream file_length = 0