def test_remove_function_with_args(self): """after remove, a function should no longer exist whatever its arguments""" url = "pg://localhost:5432/tuttle_test_db/test_function_args" res = PostgreSQLResource(url) assert res.exists(), "{} should exist".format(url) res.remove() assert not res.exists(), "{} should not exist anymore".format(url)
def test_remove_schema(self): """after remove, a schema should no longer exist""" url = "pg://localhost:5432/tuttle_test_db/test_schema/" res = PostgreSQLResource(url) assert res.exists(), "{} should exist".format(url) res.remove() assert not res.exists(), "{} should not exist anymore".format(url)
def test_remove_table(self): """remove() should remove a table""" url = "pg://localhost:5432/tuttle_test_db/test_table" res = PostgreSQLResource(url) assert res.exists(), "{} should exist".format(url) res.remove() assert not res.exists(), "{} should not exist".format(url)