diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2010-04-21 18:40:05 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2010-04-23 13:24:35 +0100 |
commit | df959c20bee9e4f0e452731c9d79e0578f3f01b0 (patch) | |
tree | 688840f6b8288e8b54c36ff72361d9075fd77e5d /tests/test_async.py | |
parent | d915cb12a8541af9477dde7546f0c4a76156fe60 (diff) | |
download | psycopg2-df959c20bee9e4f0e452731c9d79e0578f3f01b0.tar.gz |
Making sync and async connection setup somewhat more consistent.
Diffstat (limited to 'tests/test_async.py')
-rwxr-xr-x | tests/test_async.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_async.py b/tests/test_async.py index a4a11b9..9187cec 100755 --- a/tests/test_async.py +++ b/tests/test_async.py @@ -74,6 +74,11 @@ class AsyncTests(unittest.TestCase): # the async connection should be in isolevel 0 self.assertEquals(self.conn.isolation_level, 0) + # check other properties to be found on the connection + self.assert_(self.conn.server_version) + self.assert_(self.conn.protocol_version in (2,3)) + self.assert_(self.conn.encoding in psycopg2.extensions.encodings) + def test_async_named_cursor(self): self.assertRaises(psycopg2.ProgrammingError, self.conn.cursor, "name") |