updated test for function xprivate_to_xpublic_key

This commit is contained in:
Alexey Karyabkin 2018-06-19 17:24:27 +04:00
parent effbde424e
commit 2e1db23648

View File

@ -126,6 +126,9 @@ def test_xprivate_to_xpublic_key(privkey_hdwallet_base58):
assert isinstance(xpubkey, str)
assert len(xpubkey) == 111
assert xpubkey[:4] in ['xpub', 'tpub']
xpubkey = xprivate_to_xpublic_key(privkey_hdwallet_base58, False)
assert xpubkey is not None
assert isinstance(xpubkey, bytes)
def test_validate_path_level():