Update of /usr/cvs/Public/pygresql/module
In directory druid.net:/tmp/cvs-serv3479
Modified Files:
test_pg.py
Log Message:
Added test for removing of '*' after table names (indicates that descendant
tables are scanned in from clause).
To see the diffs for this commit:
http://www.druid.net/pygresql/viewcvs.cgi/cvs/pygresql/module/test_pg.py.diff?r1=1.24&r2=1.25
Index: test_pg.py
===================================================================
RCS file: /usr/cvs/Public/pygresql/module/test_pg.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- test_pg.py 4 Dec 2008 21:11:54 -0000 1.24
+++ test_pg.py 4 Dec 2008 21:22:18 -0000 1.25
@@ -4,7 +4,7 @@
#
# Written by Christoph Zwerschke
#
-# $Id: test_pg.py,v 1.24 2008/12/04 21:11:54 cito Exp $
+# $Id: test_pg.py,v 1.25 2008/12/04 21:22:18 cito Exp $
#
"""Test the classic PyGreSQL interface in the pg module.
@@ -1067,6 +1067,7 @@
oid_table = 'oid(public.%s)' % oid_table
self.assert_(oid_table in r)
self.assert_(isinstance(r[oid_table], int))
+ self.assertEqual(self.db.get(table + ' *', 2, 'n'), r)
result = {'t': 'y', 'n': 2, oid_table: r[oid_table]}
self.assertEqual(r, result)
self.assertEqual(self.db.get(table, r[oid_table], 'oid')['t'], 'y')
_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql