Skip to content

Commit

Permalink
Fix bugs of list address tester.
Browse files Browse the repository at this point in the history
  • Loading branch information
meherett committed Jul 15, 2020
1 parent c0a7bdb commit 6af4c57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/pybytom/test_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from pybytom.rpc import (
get_balance, list_address, submit_transaction_raw, decode_transaction_raw
)
from pybytom.exceptions import APIError

import pytest

Expand All @@ -13,8 +14,7 @@ def test_rpc():
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"mainnet"), int)

with pytest.raises(Exception):
isinstance(list_address("f0ed6ddd-9d6b-49fd-8866-a52d1083a13b", 1, network="mainnet"), list)
assert isinstance(list_address("f0ed6ddd-9d6b-49fd-8866-a52d1083a13b", 1, network="mainnet"), dict)

with pytest.raises(Exception):
submit_transaction_raw(
Expand Down

0 comments on commit 6af4c57

Please sign in to comment.