aboutsummaryrefslogtreecommitdiff
path: root/tests/functional_tests/wallet_address.py
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 /tests/functional_tests/wallet_address.py
parentfunctional_tests: add more wallet tests (diff)
downloadmonero-f8be31d2697e71d60c5a4bddc4f39aa58a506a0d.tar.xz
functional_tests: add wallet creation language tests
Diffstat (limited to 'tests/functional_tests/wallet_address.py')
-rwxr-xr-xtests/functional_tests/wallet_address.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/functional_tests/wallet_address.py b/tests/functional_tests/wallet_address.py
index 4b2010019..cb9c52e7a 100755
--- a/tests/functional_tests/wallet_address.py
+++ b/tests/functional_tests/wallet_address.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+#encoding=utf-8
# Copyright (c) 2019 The Monero Project
#
@@ -46,6 +47,7 @@ class WalletAddressTest():
self.check_keys()
self.create_subaddresses()
self.open_close()
+ self.languages()
def create(self):
print 'Creating wallet'
@@ -176,6 +178,25 @@ class WalletAddressTest():
res = wallet.get_address()
assert res.address == '42ey1afDFnn4886T7196doS9GPMzexD9gXpsZJDwVjeRVdFCSoHnv7KPbBeGpzJBzHRCAs9UxqeoyFQMYbqSWYTfJJQAWDm'
+ def languages(self):
+ print('Testing languages')
+ wallet = Wallet()
+ res = wallet.get_languages()
+ assert 'English' in res.languages
+ assert 'English' in res.languages_local
+ assert 'Dutch' in res.languages
+ assert 'Nederlands' in res.languages_local
+ assert 'Japanese' in res.languages
+ assert u'日本語' in res.languages_local
+ try: wallet.close_wallet()
+ except: pass
+ languages = res.languages
+ for language in languages:
+ print 'Creating ' + str(language) + ' wallet'
+ wallet.create_wallet(filename = '', language = language)
+ res = wallet.query_key('mnemonic')
+ wallet.close_wallet()
+
if __name__ == '__main__':
WalletAddressTest().run_test()