Skip to content

Commit f0a1bec

Browse files
author
Julio Martin-Hidalgo
committed
Improved test?
1 parent 9e550cf commit f0a1bec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

fsspec/tests/test_core.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,14 @@ def test_url_to_fs(ftp_writable):
196196

197197
def test_target_protocol_options(ftp_writable):
198198
host, port, username, password = ftp_writable
199-
data = b"hello"
199+
data = b"hello_protocol"
200200
options = {"host": host, "port": port, "username": username, "password": password}
201201
with fsspec.open(f"ftp://{username}:{password}@{host}:{port}/afile", "wb") as f:
202202
f.write(data)
203+
with fsspec.open(f"ftp://{username}:{password}@{host}:{port}/afile", "rb") as f:
204+
assert f.read() == data
205+
with fsspec.open("ftp:///afile", "rb", **options) as f:
206+
assert f.read() == data
203207
with fsspec.open(
204208
"simplecache://afile",
205209
"rb",

0 commit comments

Comments
 (0)