def test_get_address(self):
    seedphrase = b'example@example.com Jimmy Song'
    mainnet_priv = HDPrivateKey.from_seed(seedphrase)
    testnet_priv = HDPrivateKey.from_seed(seedphrase, testnet=True)
    tests = [[mainnet_priv.get_p2pkh_receiving_address, 0, 1, '13pS51XfGTVhxbtrGKVSvwf36r96tLUu1K'], [testnet_priv.get_p2pkh_change_address, 1, 0, 'n4EiCRsEEPaJ73HWA6zYEaHwo45BrP5MHb'], [testnet_priv.get_p2sh_p2wpkh_receiving_address, 0, 2, 'EXAMPLE_KEY'], [mainnet_priv.get_p2sh_p2wpkh_change_address, 0, 0, '38hYFPLMTykhURpCQTxkdDcpQKyieiYiU7'], [mainnet_priv.get_p2wpkh_receiving_address, 2, 0, 'bc1qzeln78k9sghatd3uwnks8jek46qe23dw99zu9j'], [testnet_priv.get_p2wpkh_change_address, 1, 1, 'tb1qecjwdw5uwwdfezzntec7m4kc8zkyjcamlz7dv9']]
    for (function, account, address, want) in tests:
        got = function(account, address)
        self.assertEqual(got, want)
def test_get_address(self):
    seedphrase = b'example@example.com Jimmy Song'
    mainnet_priv = HDPrivateKey.from_seed(seedphrase)
    testnet_priv = HDPrivateKey.from_seed(seedphrase, testnet=True)
    tests = [[mainnet_priv.get_p2pkh_receiving_address, 0, 1, '13pS51XfGTVhxbtrGKVSvwf36r96tLUu1K'], [testnet_priv.get_p2pkh_change_address, 1, 0, 'n4EiCRsEEPaJ73HWA6zYEaHwo45BrP5MHb'], [testnet_priv.get_p2sh_p2wpkh_receiving_address, 0, 2, 'EXAMPLE_KEY'], [mainnet_priv.get_p2sh_p2wpkh_change_address, 0, 0, '38hYFPLMTykhURpCQTxkdDcpQKyieiYiU7'], [mainnet_priv.get_p2wpkh_receiving_address, 2, 0, 'bc1qzeln78k9sghatd3uwnks8jek46qe23dw99zu9j'], [testnet_priv.get_p2wpkh_change_address, 1, 1, 'tb1qecjwdw5uwwdfezzntec7m4kc8zkyjcamlz7dv9']]
    for (function, account, address, want) in tests:
        got = function(account, address)
        self.assertEqual(got, want)