MCPcopy
hub / github.com/psycopg/psycopg / test_apilevel

Method test_apilevel

tests/dbapi20.py:159–166  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

157 con.close()
158
159 def test_apilevel(self):
160 try:
161 # Must exist
162 apilevel = self.driver.apilevel
163 # Must equal 2.0
164 self.assertEqual(apilevel,'2.0')
165 except AttributeError:
166 self.fail("Driver doesn't define apilevel")
167
168 def test_threadsafety(self):
169 try:

Callers

nothing calls this directly

Calls 1

failMethod · 0.45

Tested by

no test coverage detected