1
1
# -*- coding: utf-8 -*-
2
2
import pytest
3
3
4
- from ethereum import slogging
5
-
6
4
from raiden .mtree import check_proof
7
5
from raiden .tests .utils .blockchain import wait_until_block
8
6
from raiden .tests .utils .messages import setup_messages_cb
27
25
from raiden .utils import sha3 , privatekey_to_address
28
26
29
27
# pylint: disable=too-many-locals,too-many-statements
30
- slogging .configure (':DEBUG' )
31
28
32
29
33
30
def assert_secretreveal_or_withdraw (state_change , secret , channel_address , raiden_address ):
@@ -174,7 +171,7 @@ def test_settlement(raiden_network, settle_timeout, reveal_timeout):
174
171
state_change3 = state_changes [2 ]
175
172
state_change4 = state_changes [3 ]
176
173
177
- assert ( isinstance (state_change1 , ContractReceiveClosed ) )
174
+ assert isinstance (state_change1 , ContractReceiveClosed )
178
175
assert state_change1 .channel_address == nettingaddress0
179
176
assert state_change1 .closing_address == bob_app .raiden .address
180
177
assert state_change1 .block_number == alice_bob_channel .external_state .closed_block
@@ -183,7 +180,7 @@ def test_settlement(raiden_network, settle_timeout, reveal_timeout):
183
180
assert_secretreveal_or_withdraw (state_change2 , secret , nettingaddress0 , bob_app .raiden .address )
184
181
assert_secretreveal_or_withdraw (state_change3 , secret , nettingaddress0 , bob_app .raiden .address )
185
182
186
- assert ( isinstance (state_change4 , ContractReceiveSettled ) )
183
+ assert isinstance (state_change4 , ContractReceiveSettled )
187
184
assert state_change4 .channel_address == nettingaddress0
188
185
assert state_change4 .block_number == bob_alice_channel .external_state .settled_block
189
186
@@ -347,7 +344,7 @@ def test_start_end_attack(token_addresses, raiden_chain, deposit, reveal_timeout
347
344
348
345
@pytest .mark .parametrize ('blockchain_type' , ['geth' ])
349
346
@pytest .mark .parametrize ('number_of_nodes' , [2 ])
350
- def test_automatic_dispute (raiden_network , deposit , settle_timeout , reveal_timeout ):
347
+ def test_automatic_dispute (raiden_network , deposit , settle_timeout ):
351
348
app0 , app1 = raiden_network
352
349
channel0 = app0 .raiden .channelgraphs .values ()[0 ].partneraddress_channel .values ()[0 ]
353
350
channel1 = app1 .raiden .channelgraphs .values ()[0 ].partneraddress_channel .values ()[0 ]
0 commit comments