diff --git a/torba/tests/client_tests/integration/test_network.py b/torba/tests/client_tests/integration/test_network.py index 76e834846..eec697199 100644 --- a/torba/tests/client_tests/integration/test_network.py +++ b/torba/tests/client_tests/integration/test_network.py @@ -18,31 +18,36 @@ class NetworkTests(IntegrationTestCase): self.assertEqual(self.ledger.network.remote_height, initial_height + 1) async def test_server_features(self): - self.assertEqual({'genesis_hash': self.conductor.spv_node.coin_class.GENESIS_HASH, - 'hash_function': 'sha256', - 'hosts': {}, - 'protocol_max': '1.4', - 'protocol_min': '1.1', - 'pruning': None, - 'description': '', - 'payment_address': '', - 'daily_fee': 0, - 'server_version': '0.5.7'}, await self.ledger.network.get_server_features()) + self.assertEqual({ + 'genesis_hash': self.conductor.spv_node.coin_class.GENESIS_HASH, + 'hash_function': 'sha256', + 'hosts': {}, + 'protocol_max': '1.4', + 'protocol_min': '1.1', + 'pruning': None, + 'description': '', + 'payment_address': '', + 'daily_fee': 0, + 'server_version': '0.5.7'}, await self.ledger.network.get_server_features()) await self.conductor.spv_node.stop() 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.ledger.network.on_connected.first - self.assertEqual({'genesis_hash': self.conductor.spv_node.coin_class.GENESIS_HASH, - 'hash_function': 'sha256', - 'hosts': {}, - 'protocol_max': '1.4', - 'protocol_min': '1.1', - 'pruning': None, - 'description': 'Fastest server in the west.', - 'payment_address': address, - 'daily_fee': 42, - 'server_version': '0.5.7'}, await self.ledger.network.get_server_features()) + self.assertEqual({ + 'genesis_hash': self.conductor.spv_node.coin_class.GENESIS_HASH, + 'hash_function': 'sha256', + 'hosts': {}, + 'protocol_max': '1.4', + 'protocol_min': '1.1', + 'pruning': None, + 'description': 'Fastest server in the west.', + 'payment_address': address, + 'daily_fee': 42, + 'server_version': '0.5.7'}, await self.ledger.network.get_server_features()) class ReconnectTests(IntegrationTestCase):