Skip to content

Commit 0b6b63b

Browse files
committed
Test update
1 parent 163370e commit 0b6b63b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/core/eth-module/test_eth_contract.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
to_bytes,
88
)
99

10+
from web3.exceptions import (
11+
NameNotFound,
12+
)
13+
1014
ABI = [{}]
1115
ADDRESS = '0xd3CdA913deB6f67967B99D67aCDFa1712C293601'
1216
BYTES_ADDRESS = to_bytes(hexstr=ADDRESS)
@@ -19,11 +23,11 @@
1923
(
2024
((ADDRESS,), {}, None),
2125
((BYTES_ADDRESS,), {}, None),
22-
((INVALID_CHECKSUM_ADDRESS,), {}, ValueError),
23-
((NON_CHECKSUM_ADDRESS,), {}, ValueError),
26+
((INVALID_CHECKSUM_ADDRESS,), {}, NameNotFound),
27+
((NON_CHECKSUM_ADDRESS,), {}, NameNotFound),
2428
((), {'address': ADDRESS}, None),
25-
((), {'address': INVALID_CHECKSUM_ADDRESS}, ValueError),
26-
((), {'address': NON_CHECKSUM_ADDRESS}, ValueError),
29+
((), {'address': INVALID_CHECKSUM_ADDRESS}, NameNotFound),
30+
((), {'address': NON_CHECKSUM_ADDRESS}, NameNotFound),
2731
)
2832
)
2933
def test_contract_address_validation(web3, args, kwargs, expected):

0 commit comments

Comments
 (0)