summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/test_module.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_module.py b/tests/test_module.py
index 5d45187..9c130f3 100755
--- a/tests/test_module.py
+++ b/tests/test_module.py
@@ -38,6 +38,13 @@ class ConnectTestCase(unittest.TestCase):
def tearDown(self):
psycopg2._connect = self._connect_orig
+ def test_there_has_to_be_something(self):
+ self.assertRaises(psycopg2.InterfaceError, psycopg2.connect)
+ self.assertRaises(psycopg2.InterfaceError, psycopg2.connect,
+ connection_factory=lambda dsn, async=False: None)
+ self.assertRaises(psycopg2.InterfaceError, psycopg2.connect,
+ async=True)
+
def test_no_keywords(self):
psycopg2.connect('')
self.assertEqual(self.args[0], '')