def test_postgres_create_rename_and_drop(pg): name1 = temp_name() name2 = temp_name() assert not pg.exists(name1) assert not pg.exists(name2) pg.create(name1) assert pg.exists(name1) assert not pg.exists(name2) pg.rename(name1, name2) assert not pg.exists(name1) assert pg.exists(name2) pg.drop(name2) assert not pg.exists(name1) assert not pg.exists(name2)
def test_temp_name(): assert temp_name() != temp_name()