MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / _raises

Method _raises

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

Source from the content-addressed store, hash-verified

2814
2815class NonZeroTest(fixtures.TestBase):
2816 def _raises(self, expr):
2817 assert_raises_message(
2818 TypeError,
2819 "Boolean value of this clause is not defined",
2820 bool,
2821 expr,
2822 )
2823
2824 def _assert_true(self, expr):
2825 is_(bool(expr), True)

Callers 2

Calls 1

assert_raises_messageFunction · 0.90

Tested by

no test coverage detected