MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _raises

Method _raises

test/sql/test_operators.py:2990–2996  ·  view source on GitHub ↗
(self, expr)

Source from the content-addressed store, hash-verified

2988
2989class NonZeroTest(fixtures.TestBase):
2990 def _raises(self, expr):
2991 assert_raises_message(
2992 TypeError,
2993 "Boolean value of this clause is not defined",
2994 bool,
2995 expr,
2996 )
2997
2998 def _assert_true(self, expr):
2999 is_(bool(expr), True)

Callers 2

Calls 1

assert_raises_messageFunction · 0.90

Tested by

no test coverage detected