aboutsummaryrefslogtreecommitdiff
path: root/utils/python-rpc
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-25 13:02:50 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-11 11:08:12 +0000
commitf8be31d2697e71d60c5a4bddc4f39aa58a506a0d (patch)
tree9d221c6d22c8be4027179103b28c9148500d736a /utils/python-rpc
parentfunctional_tests: add more wallet tests (diff)
downloadmonero-f8be31d2697e71d60c5a4bddc4f39aa58a506a0d.tar.xz
functional_tests: add wallet creation language tests
Diffstat (limited to 'utils/python-rpc')
-rw-r--r--utils/python-rpc/framework/wallet.py18
1 files changed, 14 insertions, 4 deletions
diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py
index e09778c80..bcf908291 100644
--- a/utils/python-rpc/framework/wallet.py
+++ b/utils/python-rpc/framework/wallet.py
@@ -125,13 +125,13 @@ class Wallet(object):
}
return self.rpc.send_json_rpc_request(describe_transfer)
- def create_wallet(self, index=''):
+ def create_wallet(self, filename='', password = '', language = 'English'):
create_wallet = {
'method': 'create_wallet',
'params': {
- 'filename': 'testWallet' + index,
- 'password' : '',
- 'language' : 'English'
+ 'filename': filename,
+ 'password': password,
+ 'language': language
},
'jsonrpc': '2.0',
'id': '0'
@@ -623,6 +623,16 @@ class Wallet(object):
}
return self.rpc.send_json_rpc_request(relay_tx)
+ def get_languages(self):
+ get_languages = {
+ 'method': 'get_languages',
+ 'params': {
+ },
+ 'jsonrpc': '2.0',
+ 'id': '0'
+ }
+ return self.rpc.send_json_rpc_request(get_languages)
+
def get_version(self):
get_version = {
'method': 'get_version',