MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_db_error_busted_dbapi

Method test_db_error_busted_dbapi

test/base/test_except.py:322–329  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

320 )
321
322 def test_db_error_busted_dbapi(self):
323 try:
324 raise sa_exceptions.DBAPIError.instance(
325 "", [], ProgrammingError(), DatabaseError
326 )
327 except sa_exceptions.DBAPIError as e:
328 self.assert_(True)
329 self.assert_("Error in str() of DB-API" in e.args[0])
330
331 def test_db_error_noncompliant_dbapi(self):
332 try:

Callers

nothing calls this directly

Calls 3

instanceMethod · 0.80
ProgrammingErrorClass · 0.70
assert_Method · 0.45

Tested by

no test coverage detected