diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-05-02 12:18:28 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-09-17 11:38:25 +0000 |
commit | 4c375c9442a1eb481310914f37146c0dd5b28cf2 (patch) | |
tree | 0b71b410332ddbc5eb8849a36a5dd32188f3c444 /utils | |
parent | functional_tests: add rescan_spent/rescan_blockchain tests (diff) | |
download | monero-4c375c9442a1eb481310914f37146c0dd5b28cf2.tar.xz |
functional_tests: add wallet attributes test
Diffstat (limited to 'utils')
-rw-r--r-- | utils/python-rpc/framework/wallet.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py index 4065af892..2c1f5389d 100644 --- a/utils/python-rpc/framework/wallet.py +++ b/utils/python-rpc/framework/wallet.py @@ -911,6 +911,29 @@ class Wallet(object): } return self.rpc.send_json_rpc_request(rescan_spent) + def set_attribute(self, key, value): + set_attribute = { + 'method': 'set_attribute', + 'jsonrpc': '2.0', + 'params': { + 'key': key, + 'value': value, + }, + 'id': '0' + } + return self.rpc.send_json_rpc_request(set_attribute) + + def get_attribute(self, key): + get_attribute = { + 'method': 'get_attribute', + 'jsonrpc': '2.0', + 'params': { + 'key': key, + }, + 'id': '0' + } + return self.rpc.send_json_rpc_request(get_attribute) + def make_uri(self, address = '', payment_id = '', amount = 0, tx_description = '', recipient_name = ''): make_uri = { 'method': 'make_uri', |