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

Function assert_true

vispy/testing/_testing.py:90–95  ·  view source on GitHub ↗

Backport

(x, msg=None)

Source from the content-addressed store, hash-verified

88
89
90def assert_true(x, msg=None):
91 """Backport"""
92 if x:
93 return
94 std_msg = '%s is not True' % (_safe_rep(x),)
95 raise AssertionError(_format_msg(msg, std_msg))
96
97
98def assert_equal(x, y, msg=None):

Callers 10

test_applicationFunction · 0.90
test_event_orderFunction · 0.90
test_keyFunction · 0.90
test_group_ignoreMethod · 0.90
test_sys_infoFunction · 0.90
_prepare_visFunction · 0.90
_test_setting_stuffFunction · 0.90
test_wrappersFunction · 0.90
test_read_pixelsFunction · 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…