MCPcopy Index your code
hub / github.com/python/cpython / assert_signals

Function assert_signals

Lib/test/test_decimal.py:84–86  ·  view source on GitHub ↗
(cls, context, attr, expected)

Source from the content-addressed store, hash-verified

82 P.FloatOperation]
83}
84def assert_signals(cls, context, attr, expected):
85 d = getattr(context, attr)
86 cls.assertTrue(all(d[s] if s in expected else not d[s] for s in d))
87
88ROUND_UP = P.ROUND_UP
89ROUND_DOWN = P.ROUND_DOWN

Callers 5

test_none_argsMethod · 0.85
test_pickleMethod · 0.85
test_default_contextMethod · 0.85
assert_restMethod · 0.85

Calls 1

assertTrueMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…