def test_bech32_address(self):
    mnemonic = 'abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about'
    password = b''
    path = "m/84'/0'/0'"
    account = HDPrivateKey.from_mnemonic(mnemonic, password, path=path, testnet=False)
    want = 'EXAMPLE_KEY'
    self.assertEqual(account.zprv(), want)
    want = 'EXAMPLE_KEY'
    self.assertEqual(account.zpub(), want)
    first_key = account.child(0).child(0)
    want = 'bc1qcr8te4kr609gcawutmrza0j4xv80jy8z306fyu'
    self.assertEqual(first_key.bech32_address(), want)
def test_bech32_address(self):
    mnemonic = 'abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about'
    password = b
    path = "m/84'/0'/0'"
    account = HDPrivateKey.from_mnemonic(mnemonic, password, path=path, testnet=False)
    want = 'EXAMPLE_KEY'
    self.assertEqual(account.zprv(), want)
    want = 'EXAMPLE_KEY'
    self.assertEqual(account.zpub(), want)
    first_key = account.child(0).child(0)
    want = 'bc1qcr8te4kr609gcawutmrza0j4xv80jy8z306fyu'
    self.assertEqual(first_key.bech32_address(), want)