MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / assert_equal

Function assert_equal

test/functional/test_framework/util.py:37–39  ·  view source on GitHub ↗
(thing1, thing2, *args)

Source from the content-addressed store, hash-verified

35 raise AssertionError("Fee of %s BTC too high! (Should be %s BTC)" % (str(fee), str(target_fee)))
36
37def assert_equal(thing1, thing2, *args):
38 if thing1 != thing2 or any(thing1 != arg for arg in args):
39 raise AssertionError("not(%s)" % " == ".join(str(arg) for arg in (thing1, thing2) + args))
40
41def assert_greater_than(thing1, thing2):
42 if thing1 <= thing2:

Callers 15

test_null_locatorsMethod · 0.90
test_nonnull_locatorsMethod · 0.90
run_testMethod · 0.90
_test_getnettotalsMethod · 0.90
_test_getpeerinfoMethod · 0.90
run_testMethod · 0.90
run_testMethod · 0.90

Calls 1

joinMethod · 0.80

Tested by 15

test_null_locatorsMethod · 0.72
test_nonnull_locatorsMethod · 0.72
test_no_blockhashMethod · 0.72
test_double_sendMethod · 0.72
test_utxo_conversionMethod · 0.72
test_rest_requestMethod · 0.72
run_testMethod · 0.72
test_sendcmpctMethod · 0.72