[test] Add test for is_valid_address

bech32
Janet Liang 4 years ago
parent 2ed1610aac
commit dbf180d69d
  1. 5
      tests/sdk-pyhmy/test_account.py

@ -77,3 +77,8 @@ def test_get_total_balance(setup_blockchain):
total_balance = _test_account_rpc(account.get_total_balance, local_test_address) total_balance = _test_account_rpc(account.get_total_balance, local_test_address)
assert isinstance(total_balance, int) assert isinstance(total_balance, int)
assert total_balance > 0 assert total_balance > 0
@pytest.mark.run(order=0)
def test_is_valid_address():
assert account.is_valid_address('one1zksj3evekayy90xt4psrz8h6j2v3hla4qwz4ur')
assert not account.is_valid_address('one1wje75aedczmj4dwjs0812xcg7vx0dy231cajk0')

Loading…
Cancel
Save