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

Function assert_in

vispy/testing/_testing.py:82–87  ·  view source on GitHub ↗

Backport

(member, container, msg=None)

Source from the content-addressed store, hash-verified

80
81
82def assert_in(member, container, msg=None):
83 """Backport"""
84 if member in container:
85 return
86 std_msg = '%s not found in %s' % (_safe_rep(member), _safe_rep(container))
87 raise AssertionError(_format_msg(msg, std_msg))
88
89
90def assert_true(x, msg=None):

Callers 13

_test_module_propertiesFunction · 0.90
test_applicationFunction · 0.90
test_event_orderFunction · 0.90
test_FunctionCallFunction · 0.90
test_VariableFunction · 0.90
test_function_basicsFunction · 0.90
test_FunctionChainFunction · 0.90
test_testingFunction · 0.90
test_font_listFunction · 0.90
test_sys_infoFunction · 0.90
test_debug_loggingFunction · 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…