Changeset: 5f773698fec3 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5f773698fec3
Modified Files:
        clients/python/test/capabilities.py
Branch: default
Log Message:

added some tests


diffs (28 lines):

diff --git a/clients/python/test/capabilities.py 
b/clients/python/test/capabilities.py
--- a/clients/python/test/capabilities.py
+++ b/clients/python/test/capabilities.py
@@ -25,7 +25,7 @@
 """
 from time import time
 import unittest
-
+from monetdb.exceptions import ProgrammingError
 
 class DatabaseTest(unittest.TestCase):
 
@@ -342,3 +342,14 @@ class DatabaseTest(unittest.TestCase):
         self.cursor.execute('select * from tables, tables')
         r = self.cursor.fetchall()
         self.assertEqual(len(r), n**2)
+
+    def test_closecur(self):
+        self.cursor.close()
+        self.assertRaises(ProgrammingError, self.cursor.execute, "select * 
from tables")
+        self.cursor = self.connection.cursor()
+
+    def test_customtype(self):
+        t = ["list", "test"]
+        self.assertRaises(ProgrammingError, self.db_module.monetize.convert, t)
+        self.db_module.monetize.mapping[list] = str
+        self.assertEqual(self.db_module.monetize.convert(t), "['list', 
'test']")
\ No newline at end of file
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to