diff options
author | fridokus <raxomukus@gmail.com> | 2019-09-19 14:53:40 +0200 |
---|---|---|
committer | fridokus <raxomukus@gmail.com> | 2019-09-19 14:53:40 +0200 |
commit | 96299a9d6c0a6b9125a58a63ee3147e55d1b086b (patch) | |
tree | 67a67bd03567613ba1c6d1afc837e08e32375d44 /test/functional/wallet_groups.py | |
parent | 9bf5768dd628b3a7c30dd42b5ed477a92c4d3540 (diff) |
Test: Move common function assert_approx() into util.py
Diffstat (limited to 'test/functional/wallet_groups.py')
-rwxr-xr-x | test/functional/wallet_groups.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/test/functional/wallet_groups.py b/test/functional/wallet_groups.py index 5452433acf..d1178611bd 100755 --- a/test/functional/wallet_groups.py +++ b/test/functional/wallet_groups.py @@ -7,15 +7,10 @@ from test_framework.test_framework import BitcoinTestFramework from test_framework.messages import CTransaction, FromHex, ToHex from test_framework.util import ( + assert_approx, assert_equal, ) -def assert_approx(v, vexp, vspan=0.00001): - if v < vexp - vspan: - raise AssertionError("%s < [%s..%s]" % (str(v), str(vexp - vspan), str(vexp + vspan))) - if v > vexp + vspan: - raise AssertionError("%s > [%s..%s]" % (str(v), str(vexp - vspan), str(vexp + vspan))) - class WalletGroupTest(BitcoinTestFramework): def set_test_params(self): self.setup_clean_chain = True |