functional_tests: add validate_address tests

This commit is contained in:
moneromooo-monero 2019-04-22 20:06:58 +00:00
parent 8adde33e01
commit 7d9b7fee43
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
3 changed files with 126 additions and 3 deletions

View file

@ -750,6 +750,19 @@ class Wallet(object):
}
return self.rpc.send_json_rpc_request(set_log_categories)
def validate_address(self, address, any_net_type = False, allow_openalias = False):
validate_address = {
'method': 'validate_address',
'params': {
'address': address,
'any_net_type': any_net_type,
'allow_openalias': allow_openalias,
},
'jsonrpc': '2.0',
'id': '0'
}
return self.rpc.send_json_rpc_request(validate_address)
def get_version(self):
get_version = {
'method': 'get_version',