MCPcopy Create free account
hub / github.com/vispy/vispy / assert_not_in

Function assert_not_in

vispy/testing/_testing.py:114–119  ·  view source on GitHub ↗

Backport

(member, container, msg=None)

Source from the content-addressed store, hash-verified

112
113
114def assert_not_in(member, container, msg=None):
115 """Backport"""
116 if member not in container:
117 return
118 std_msg = '%s found in %s' % (_safe_rep(member), _safe_rep(container))
119 raise AssertionError(_format_msg(msg, std_msg))
120
121
122def assert_is(expr1, expr2, msg=None):

Callers 5

test_FunctionChainFunction · 0.90
test_testingFunction · 0.90
test_debug_loggingFunction · 0.90
test_import_vispy_app2Function · 0.90

Calls 2

_safe_repFunction · 0.85
_format_msgFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…