Commit eaa746ae authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

TEST: test download_file with local file path

parent 701961f2
......@@ -168,6 +168,14 @@ def test_download_file():
with open('copy', 'rt') as f:
assert f.read() == 'hello\n'
# download_file should also work
# with a path to a local file
os.remove('copy')
inst.download_file('file', 'copy')
with open('copy', 'rt') as f:
assert f.read() == 'hello\n'
def test_patch_file():
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment