MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / is_

Function is_

lib/sqlalchemy/testing/assertions.py:325–327  ·  lib/sqlalchemy/testing/assertions.py::is_

Assert a is b, with repr messaging on failure.

(a, b, msg=None)

Source from the content-addressed store, hash-verified

323
324
325def is_(a, b, msg=None):
326 class="st">""class="st">"Assert a is b, with repr messaging on failure."class="st">""
327 assert a is b, msg or class="st">"%r is not %r" % (a, b)
328
329
330def is_not(a, b, msg=None):

Callers 15

test_operateMethod · 0.90
_loop_testMethod · 0.90
test_default_adaptMethod · 0.90
test_setup_getitemMethod · 0.90
test_cast_opsMethod · 0.90
_assert_trueMethod · 0.90

Calls

no outgoing calls

Tested by 15

test_operateMethod · 0.72
_loop_testMethod · 0.72
test_default_adaptMethod · 0.72
test_setup_getitemMethod · 0.72
test_cast_opsMethod · 0.72
_assert_trueMethod · 0.72