From 26af01a5cc211952c05a0a656b88633d35ea6797 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Fri, 31 Aug 2018 11:22:32 -0400 Subject: [PATCH] test account list for specific account --- lbrynet/daemon/Daemon.py | 2 +- tests/integration/wallet/test_commands.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lbrynet/daemon/Daemon.py b/lbrynet/daemon/Daemon.py index fcec42bd4..e287c282a 100644 --- a/lbrynet/daemon/Daemon.py +++ b/lbrynet/daemon/Daemon.py @@ -1144,7 +1144,7 @@ class Daemon(AuthJSONRPCServer): args = { 'confirmations': confirmations, 'include_reserved': include_reserved, - 'include_seed': show_seed + 'show_seed': show_seed } if include_claims: args['include_claims'] = True diff --git a/tests/integration/wallet/test_commands.py b/tests/integration/wallet/test_commands.py index 286595d8c..f737602de 100644 --- a/tests/integration/wallet/test_commands.py +++ b/tests/integration/wallet/test_commands.py @@ -339,3 +339,7 @@ class AccountManagement(CommandTestCase): response = yield self.daemon.jsonrpc_account_list() self.assertEqual(len(response['lbc_regtest']), 2) 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')