test account list for specific account

This commit is contained in:
Lex Berezhny 2018-08-31 11:22:32 -04:00
parent 36989f1974
commit 26af01a5cc
2 changed files with 5 additions and 1 deletions

View file

@ -1144,7 +1144,7 @@ class Daemon(AuthJSONRPCServer):
args = { args = {
'confirmations': confirmations, 'confirmations': confirmations,
'include_reserved': include_reserved, 'include_reserved': include_reserved,
'include_seed': show_seed 'show_seed': show_seed
} }
if include_claims: if include_claims:
args['include_claims'] = True args['include_claims'] = True

View file

@ -339,3 +339,7 @@ class AccountManagement(CommandTestCase):
response = yield self.daemon.jsonrpc_account_list() response = yield self.daemon.jsonrpc_account_list()
self.assertEqual(len(response['lbc_regtest']), 2) self.assertEqual(len(response['lbc_regtest']), 2)
self.assertEqual(response['lbc_regtest'][1]['name'], 'recreated account') self.assertEqual(response['lbc_regtest'][1]['name'], 'recreated account')
# list specific account
response = yield self.daemon.jsonrpc_account_list(account_id)
self.assertEqual(response['name'], 'recreated account')