proper dict formatting on tests
This commit is contained in:
parent
ef94c1eccc
commit
9c86cb7954
1 changed files with 26 additions and 21 deletions
|
@ -18,7 +18,8 @@ class NetworkTests(IntegrationTestCase):
|
||||||
self.assertEqual(self.ledger.network.remote_height, initial_height + 1)
|
self.assertEqual(self.ledger.network.remote_height, initial_height + 1)
|
||||||
|
|
||||||
async def test_server_features(self):
|
async def test_server_features(self):
|
||||||
self.assertEqual({'genesis_hash': self.conductor.spv_node.coin_class.GENESIS_HASH,
|
self.assertEqual({
|
||||||
|
'genesis_hash': self.conductor.spv_node.coin_class.GENESIS_HASH,
|
||||||
'hash_function': 'sha256',
|
'hash_function': 'sha256',
|
||||||
'hosts': {},
|
'hosts': {},
|
||||||
'protocol_max': '1.4',
|
'protocol_max': '1.4',
|
||||||
|
@ -30,10 +31,14 @@ class NetworkTests(IntegrationTestCase):
|
||||||
'server_version': '0.5.7'}, await self.ledger.network.get_server_features())
|
'server_version': '0.5.7'}, await self.ledger.network.get_server_features())
|
||||||
await self.conductor.spv_node.stop()
|
await self.conductor.spv_node.stop()
|
||||||
address = (await self.account.get_addresses(limit=1))[0]
|
address = (await self.account.get_addresses(limit=1))[0]
|
||||||
os.environ.update({'DESCRIPTION': 'Fastest server in the west.', 'DONATION_ADDRESS': address, 'DAILY_FEE': '42'})
|
os.environ.update({
|
||||||
|
'DESCRIPTION': 'Fastest server in the west.',
|
||||||
|
'DONATION_ADDRESS': address,
|
||||||
|
'DAILY_FEE': '42'})
|
||||||
await self.conductor.spv_node.start(self.conductor.blockchain_node)
|
await self.conductor.spv_node.start(self.conductor.blockchain_node)
|
||||||
await self.ledger.network.on_connected.first
|
await self.ledger.network.on_connected.first
|
||||||
self.assertEqual({'genesis_hash': self.conductor.spv_node.coin_class.GENESIS_HASH,
|
self.assertEqual({
|
||||||
|
'genesis_hash': self.conductor.spv_node.coin_class.GENESIS_HASH,
|
||||||
'hash_function': 'sha256',
|
'hash_function': 'sha256',
|
||||||
'hosts': {},
|
'hosts': {},
|
||||||
'protocol_max': '1.4',
|
'protocol_max': '1.4',
|
||||||
|
|
Loading…
Reference in a new issue