@pytest.mark.parametrize('test_filename', ['sample.txt'], indirect=['test_filename'])
def test_pull_file(storage, test_filename, tmpdir):
    local_base_dir = tmpdir.mkdir('remote_storage')
    storage.pull(test_filename, local_base_dir=local_base_dir)
    assert os.path.isfile(os.path.join(local_base_dir, test_filename))
    pulled_files = storage.pull(test_filename)
    assert (len(pulled_files) == 0)
@pytest.mark.parametrize('test_filename', ['sample.txt'], indirect=['test_filename'])
def test_pull_file(storage, test_filename, tmpdir):
    local_base_dir = tmpdir.mkdir('remote_storage')
    storage.pull(test_filename, local_base_dir=local_base_dir)
    assert os.path.isfile(os.path.join(local_base_dir, test_filename))
    pulled_files = storage.pull(test_filename)
    assert (len(pulled_files) == 0)