@pytest.mark.parametrize('test_filename', ['sample.txt'], indirect=['test_filename'])
def test_pull_file_to_existing_dir_path(storage, test_filename, tmpdir):
    local_base_dir = tmpdir.mkdir('remote_storage')
    local_base_dir.mkdir(test_filename)
    with pytest.raises(FileExistsError, match='Cannot pull file to a path which is an existing directory:'):
        storage.pull(test_filename, local_base_dir=local_base_dir)
@pytest.mark.parametrize('test_filename', ['sample.txt'], indirect=['test_filename'])
def test_pull_file_to_existing_dir_path(storage, test_filename, tmpdir):
    local_base_dir = tmpdir.mkdir('remote_storage')
    local_base_dir.mkdir(test_filename)
    with pytest.raises(FileExistsError, match='Cannot pull file to a path which is an existing directory:'):
        storage.pull(test_filename, local_base_dir=local_base_dir)