From 81addddaee2c690e925bb8f381e7bcb02ca97687 Mon Sep 17 00:00:00 2001 From: Federico Di Gregorio Date: Sun, 7 Oct 2018 13:54:24 +0200 Subject: Added connection.get_native_connection() --- tests/test_connection.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/test_connection.py b/tests/test_connection.py index 1342f9f..3b8f775 100755 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -340,6 +340,11 @@ class ConnectionTests(ConnectingTestCase): self.assert_(c.closed, "connection failed so it must be closed") self.assert_('foobar' not in c.dsn, "password was not obscured") + def test_get_native_connection(self): + conn = self.connect() + capsule = conn.get_native_connection() + # we can't do anything else in Python + self.assertIsNotNone(capsule) class ParseDsnTestCase(ConnectingTestCase): def test_parse_dsn(self): -- cgit v1.2.1