def test_list_tables():
    Table.create(DBNAME, "foo", [('id', int)], verbose=True)
    Table.create(DBNAME, "bar", [('id', int)], verbose=True)
    tables = Table.list_tables(DBNAME, verbose=True)
    assert tables == ["foo", "bar"], tables
    assert Table.exists(DBNAME, 'foo', verbose=True)
    os.remove(DBNAME)
Check that the list of tables is correct
dataset/ETHPy150Open jhamrick/dbtools/tests/test_table_misc.py/test_list_tables