[Greater-commits] r396 - trunk/GREAT-ER-DB/impl/postgresql/test
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Jul 11 11:34:41 CEST 2011
Author: bricks
Date: 2011-07-11 11:34:41 +0200 (Mon, 11 Jul 2011)
New Revision: 396
Modified:
trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_p_bin_obj.py
Log:
Fix test case for bin obj for filesize if no file is requested
Modified: trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_p_bin_obj.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_p_bin_obj.py 2011-07-11 09:32:40 UTC (rev 395)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_p_bin_obj.py 2011-07-11 09:34:41 UTC (rev 396)
@@ -123,8 +123,13 @@
res = da_get_bin_obj(2, "CATCHMENT", 202, "Y")
self.assertEquals(len(res), 1)
self.assertNotEquals(len(res[0].file_obj), 0)
- self.assertNotEquals(res[0].file_size, 0)
+ self.assertEquals(res[0].file_size, 305)
+ res = da_get_bin_obj(2, "CATCHMENT", 202, "N")
+ self.assertEquals(len(res), 1)
+ self.assertEquals(res[0].file_obj, None)
+ self.assertEquals(res[0].file_size, 305)
+
res = da_get_bin_obj(2, "catchment", 201, "Y")
self.assertEquals(len(res), 1)
self.assertEquals(res[0].file_obj, None)
@@ -134,11 +139,6 @@
res = da_get_bin_obj(2, "catchment", 202, "Y")
self.assertEquals(len(res), 0)
- res = da_get_bin_obj(2, "CATCHMENT", 202, "N")
- self.assertEquals(len(res), 1)
- self.assertEquals(res[0].file_obj, None)
- self.assertEquals(res[0].file_size, 0)
-
res = da_get_bin_obj(2, 'CATCHMENT', 203, "Y")
self.assertEquals(len(res), 1)
self.assertNotEquals(len(res[0].file_obj), 0)
More information about the Greater-commits
mailing list