2019-09-17 07:19:57 +02:00
|
|
|
from lbry.testcase import CommandTestCase
|
|
|
|
|
|
|
|
|
|
|
|
class AddressManagement(CommandTestCase):
|
|
|
|
|
|
|
|
async def test_address_list(self):
|
2019-09-20 15:25:50 +02:00
|
|
|
addresses = await self.out(self.daemon.jsonrpc_address_list())
|
2019-09-17 07:19:57 +02:00
|
|
|
self.assertEqual(27, len(addresses))
|
|
|
|
|
2019-09-20 15:25:50 +02:00
|
|
|
single = await self.out(self.daemon.jsonrpc_address_list(addresses[11]['address']))
|
2019-09-17 07:19:57 +02:00
|
|
|
self.assertEqual(1, len(single))
|
|
|
|
self.assertEqual(single[0], addresses[11])
|