[Greater-commits] r338 - trunk/GREAT-ER-DB/impl/postgresql/test
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jun 30 15:21:38 CEST 2011
Author: bricks
Date: 2011-06-30 15:21:37 +0200 (Thu, 30 Jun 2011)
New Revision: 338
Modified:
trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_d_connect.py
Log:
Cleanup database for other tests again
Modified: trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_d_connect.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_d_connect.py 2011-06-30 13:10:10 UTC (rev 337)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_d_connect.py 2011-06-30 13:21:37 UTC (rev 338)
@@ -34,6 +34,7 @@
from GreaterDB.interface import DA_S_user
from GreaterDB.interface import da_insert_user
+from GreaterDB.interface import da_delete_user
class Test_da_db_connect(unittest.TestCase):
@@ -117,6 +118,11 @@
da_db_connect("john_doe", "hallo", self.connection_target)
da_db_disconnect()
+ da_db_connect("anonym", "123", self.connection_target)
+ da_delete_user("john_doe")
+ da_db_commit()
+ da_db_disconnect()
+
def test_db_disconnect(self):
# test several disconnects in a row
# there should be no error
More information about the Greater-commits
mailing list