MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / assert_not_equal

Function assert_not_equal

test/functional/test_framework/util.py:96–98  ·  view source on GitHub ↗
(thing1, thing2, *, error_message="")

Source from the content-addressed store, hash-verified

94 raise AssertionError("not(%s)" % " == ".join(str(arg) for arg in (thing1, thing2) + args))
95
96def assert_not_equal(thing1, thing2, *, error_message=""):
97 if thing1 == thing2:
98 raise AssertionError(f"Both values are {thing1}{f', {error_message}' if error_message else ''}")
99
100
101def assert_greater_than(thing1, thing2):

Callers 15

run_testMethod · 0.90
run_testMethod · 0.90
run_testMethod · 0.90
run_testMethod · 0.90
run_testMethod · 0.90
run_testMethod · 0.90
run_testMethod · 0.90
test_reorg_2child_rbfMethod · 0.90
async_routineMethod · 0.90
run_testMethod · 0.90
run_testMethod · 0.90

Calls

no outgoing calls