From dbf180d69df458ee038dc57d1533b6d0b61d7208 Mon Sep 17 00:00:00 2001 From: Janet Liang Date: Wed, 1 Jul 2020 05:49:27 -0700 Subject: [PATCH] [test] Add test for is_valid_address --- tests/sdk-pyhmy/test_account.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/sdk-pyhmy/test_account.py b/tests/sdk-pyhmy/test_account.py index 8656327..b2f1564 100644 --- a/tests/sdk-pyhmy/test_account.py +++ b/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) assert isinstance(total_balance, int) 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')