2019-09-17 01:19:57 -04:00
|
|
|
from lbry.testcase import CommandTestCase
|
|
|
|
|
|
|
|
|
|
|
|
class AddressManagement(CommandTestCase):
|
|
|
|
|
|
|
|
async def test_address_list(self):
|
2019-09-20 09:25:50 -04:00
|
|
|
addresses = await self.out(self.daemon.jsonrpc_address_list())
|
2019-10-25 23:34:44 -04:00
|
|
|
self.assertItemCount(addresses, 27)
|
2019-09-17 01:19:57 -04:00
|
|
|
|
2019-10-25 23:34:44 -04:00
|
|
|
single = await self.out(self.daemon.jsonrpc_address_list(addresses['items'][11]['address']))
|
|
|
|
self.assertItemCount(single, 1)
|
|
|
|
self.assertEqual(single['items'][0], addresses['items'][11])
|