Skip to content

Commit

Permalink
Update: All private and public tester components.
Browse files Browse the repository at this point in the history
  • Loading branch information
meherett committed Oct 24, 2021
1 parent 6bb6427 commit 3993880
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tests/hdwallet/test_from_private_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_from_private_key():
assert hdwallet.public_key() == _["bitcoin"]["mainnet"]["public_key"]
assert hdwallet.wif() == _["bitcoin"]["mainnet"]["wif"]
assert hdwallet.finger_print() == _["bitcoin"]["mainnet"]["finger_print"]
assert hdwallet.semantic() == _["bitcoin"]["mainnet"]["semantic"]
assert hdwallet.semantic() is None
assert hdwallet.path() == None
assert hdwallet.hash() == _["bitcoin"]["mainnet"]["hash"]
assert hdwallet.p2pkh_address() == _["bitcoin"]["mainnet"]["addresses"]["p2pkh"]
Expand All @@ -71,6 +71,7 @@ def test_from_private_key():
dumps["root_xpublic_key"] = None
dumps["xprivate_key"] = None
dumps["xpublic_key"] = None
dumps["semantic"] = None
dumps["chain_code"] = None
dumps["path"] = None
del dumps["root_xprivate_key_hex"]
Expand Down
3 changes: 2 additions & 1 deletion tests/hdwallet/test_from_public_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_from_public_key():
assert hdwallet.public_key(compressed=False, private_key=_["bitcoin"]["testnet"]["private_key"]) == _["bitcoin"]["testnet"]["uncompressed"]
assert hdwallet.wif() is None
assert hdwallet.finger_print() == _["bitcoin"]["testnet"]["finger_print"]
assert hdwallet.semantic() == _["bitcoin"]["testnet"]["semantic"]
assert hdwallet.semantic() is None
assert hdwallet.path() == None
assert hdwallet.hash() == _["bitcoin"]["testnet"]["hash"]
assert hdwallet.p2pkh_address() == _["bitcoin"]["testnet"]["addresses"]["p2pkh"]
Expand All @@ -74,6 +74,7 @@ def test_from_public_key():
dumps["root_xpublic_key"] = None
dumps["xprivate_key"] = None
dumps["xpublic_key"] = None
dumps["semantic"] = None
dumps["chain_code"] = None
dumps["private_key"] = None
dumps["wif"] = None
Expand Down
3 changes: 2 additions & 1 deletion tests/hdwallet/test_from_wif.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_from_wallet_important_format():
assert hdwallet.public_key() == _["bitcoin"]["mainnet"]["public_key"]
assert hdwallet.wif() == _["bitcoin"]["mainnet"]["wif"]
assert hdwallet.finger_print() == _["bitcoin"]["mainnet"]["finger_print"]
assert hdwallet.semantic() == _["bitcoin"]["mainnet"]["semantic"]
assert hdwallet.semantic() is None
assert hdwallet.path() == None
assert hdwallet.hash() == _["bitcoin"]["mainnet"]["hash"]
assert hdwallet.p2pkh_address() == _["bitcoin"]["mainnet"]["addresses"]["p2pkh"]
Expand All @@ -71,6 +71,7 @@ def test_from_wallet_important_format():
dumps["root_xpublic_key"] = None
dumps["xprivate_key"] = None
dumps["xpublic_key"] = None
dumps["semantic"] = None
dumps["chain_code"] = None
dumps["path"] = None
del dumps["root_xprivate_key_hex"]
Expand Down

0 comments on commit 3993880

Please sign in to comment.