diff options
| author | Federico Di Gregorio <fog@dndg.it> | 2018-10-07 13:54:24 +0200 |
|---|---|---|
| committer | Federico Di Gregorio <fog@dndg.it> | 2018-10-07 13:54:24 +0200 |
| commit | 81addddaee2c690e925bb8f381e7bcb02ca97687 (patch) | |
| tree | 43587104082ab6442cd98170ae15e19d8138bd81 /tests | |
| parent | ccae5cae34051d6640ec6cbce6d9313778c509d3 (diff) | |
| download | psycopg2-81addddaee2c690e925bb8f381e7bcb02ca97687.tar.gz | |
Added connection.get_native_connection()
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/test_connection.py | 5 |
1 files changed, 5 insertions, 0 deletions
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): |
