def METHOD_NAME(self):
    """Test dump annotations locally."""
    savepath = tempfile.mkdtemp()
    # recursively save annotations -- JSONs + sqlite for folders/items
    dump_annotations_locally(
        cfg.gc, folderid=cfg.folderid, local=savepath,
        save_json=True, save_sqlite=True)
    assert not len({
        'test-parser.json',
        'test-parser.sqlite',
        'test_dbsqlite-0.json',
        'test_dbsqlite-0_annotations.json',
        'test_dbsqlite-1.json',
        'test_dbsqlite-1_annotations.json',
        'test-parser-sub',
    } - set(os.listdir(savepath)))
    sql_engine = db.create_engine('sqlite:///%s/test-parser.sqlite' % savepath)
    dbcon = sql_engine.connect()
    result = pd.read_sql_query(text("""SELECT count(*) FROM 'folders';"""), dbcon)
    assert int(result.loc[0, :]) == 2
    result = pd.read_sql_query(text("""SELECT count(*) FROM 'items';"""), dbcon)
    assert int(result.loc[0, :]) == 4
    # cleanup
    shutil.rmtree(savepath)