[Greater-commits] r383 - trunk/GREAT-ER-DB/impl/postgresql/test

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Jul 8 15:24:31 CEST 2011


Author: bricks
Date: 2011-07-08 15:24:31 +0200 (Fri, 08 Jul 2011)
New Revision: 383

Modified:
   trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_o_phrase.py
Log:
Fix type and use function local variable res instead of instance res variable


Modified: trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_o_phrase.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_o_phrase.py	2011-07-08 13:20:52 UTC (rev 382)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_o_phrase.py	2011-07-08 13:24:31 UTC (rev 383)
@@ -45,10 +45,10 @@
         da_db_connect("anonym", "123", self.connection_target)
 
     def test_0_get_phrase_grp(self):
-        self.rVes = da_get_phrase_grp(1, 'E')
-        self.assertNotEquals(len(self.res),0)
-        self.res = da_get_phrase_grp(1, 'M')
-        self.assertEquals(len(self.res),0)
+        res = da_get_phrase_grp(1, 'E')
+        self.assertNotEquals(len(res),0)
+        res = da_get_phrase_grp(1, 'M')
+        self.assertEquals(len(res),0)
 
     def tearDown(self):
         da_db_disconnect()



More information about the Greater-commits mailing list