diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-17 11:24:33 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-21 19:27:47 +0000 |
commit | 3e93c157bd8e3e8113cce97cffd736e5e63589ea (patch) | |
tree | 8f52323ab4959dca7fb41fb2c2f8d1449dcd781d /tests/functional_tests/test_framework/wallet.py | |
parent | functional_tests: add basic transfer tests (diff) | |
download | monero-3e93c157bd8e3e8113cce97cffd736e5e63589ea.tar.xz |
functional_tests: add integrated address tests
Diffstat (limited to 'tests/functional_tests/test_framework/wallet.py')
-rw-r--r-- | tests/functional_tests/test_framework/wallet.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/functional_tests/test_framework/wallet.py b/tests/functional_tests/test_framework/wallet.py index 7756e37dd..e4f352e1d 100644 --- a/tests/functional_tests/test_framework/wallet.py +++ b/tests/functional_tests/test_framework/wallet.py @@ -290,3 +290,26 @@ class Wallet(object): 'id': '0' } return self.rpc.send_json_rpc_request(get_transfers) + + def make_integrated_address(self, standard_address = '', payment_id = ''): + make_integrated_address = { + 'method': 'make_integrated_address', + 'params' : { + 'standard_address': standard_address, + 'payment_id': payment_id, + }, + 'jsonrpc': '2.0', + 'id': '0' + } + return self.rpc.send_json_rpc_request(make_integrated_address) + + def split_integrated_address(self, integrated_address): + split_integrated_address = { + 'method': 'split_integrated_address', + 'params' : { + 'integrated_address': integrated_address, + }, + 'jsonrpc': '2.0', + 'id': '0' + } + return self.rpc.send_json_rpc_request(split_integrated_address) |