From 2e1db23648739dab116f297e551ec9cb38c8f11c Mon Sep 17 00:00:00 2001 From: Alexey Karyabkin Date: Tue, 19 Jun 2018 17:24:27 +0400 Subject: [PATCH] updated test for function xprivate_to_xpublic_key --- tests/test_bip0032.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_bip0032.py b/tests/test_bip0032.py index 8902b48..757f50b 100644 --- a/tests/test_bip0032.py +++ b/tests/test_bip0032.py @@ -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():