Skip to content

Commit

Permalink
Improve addReservedPeer test
Browse files Browse the repository at this point in the history
  • Loading branch information
kclowes committed Apr 5, 2019
1 parent eee3c65 commit 18b2c2e
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions web3/_utils/module_testing/parity_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,7 @@ def test_trace_filter(self, web3, txn_filter_params, parity_fixture_data):
trace = web3.parity.traceFilter(txn_filter_params)
assert isinstance(trace, list)
assert trace[0]['action']['from'] == add_0x_prefix(parity_fixture_data['coinbase'])


@pytest.mark.parametrize(
'params',
['enode://f1a6b0bdbf014355587c3018454d070ac57801f05d3b39fe85da574f002a32e929f683d72aa5a8318382e4d3c7a05c9b91687b0d997a39619fb8a6e7ad88e512@1.1.1.1:30300']
)
def test_add_reserved_peer(self, web3, params):
response = web3.parity.addReservedPeer([params])
assert response["result"]==True


def test_add_reserved_peer(self, web3):
peer_addr = 'enode://f1a6b0bdbf014355587c3018454d070ac57801f05d3b39fe85da574f002a32e929f683d72aa5a8318382e4d3c7a05c9b91687b0d997a39619fb8a6e7ad88e512@1.1.1.1:30300' # noqa: E501
assert web3.parity.addReservedPeer([peer_addr])

0 comments on commit 18b2c2e

Please sign in to comment.