From f53de458c92a835c58af536e62bf0fdfaed30cef Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Thu, 5 Jun 2014 02:32:53 +0200 Subject: [PATCH] Added test with objects without length as callproc param --- tests/test_cursor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_cursor.py b/tests/test_cursor.py index fc389e1a..1ebe9d05 100755 --- a/tests/test_cursor.py +++ b/tests/test_cursor.py @@ -465,6 +465,11 @@ class CursorTests(ConnectingTestCase): self.assertRaises(exception, cur.callproc, procname, parameter_sequence) self.conn.rollback() + def test_callproc_badparam(self): + cur = self.conn.cursor() + self.assertRaises(TypeError, cur.callproc, 'lower', 42) + + def test_suite(): return unittest.TestLoader().loadTestsFromName(__name__)