@pytest.mark.parametrize('test_dirname', ['sample_dir'], indirect=['test_dirname'])
def test_pull_dir(storage, test_dirname, tmpdir):
    local_base_dir = tmpdir.mkdir('remote_storage')
    storage.pull(test_dirname, local_base_dir=local_base_dir)
    assert os.path.isdir(os.path.join(local_base_dir, test_dirname))
    assert (len(os.listdir(os.path.join(local_base_dir, test_dirname))) == 2)
    pulled_files = storage.pull(test_dirname)
    assert (len(pulled_files) == 0)
@pytest.mark.parametrize('test_dirname', ['sample_dir'], indirect=['test_dirname'])
def test_pull_dir(storage, test_dirname, tmpdir):
    local_base_dir = tmpdir.mkdir('remote_storage')
    storage.pull(test_dirname, local_base_dir=local_base_dir)
    assert os.path.isdir(os.path.join(local_base_dir, test_dirname))
    assert (len(os.listdir(os.path.join(local_base_dir, test_dirname))) == 2)
    pulled_files = storage.pull(test_dirname)
    assert (len(pulled_files) == 0)