def test_traverse(self):
    seed = b'example@example.com Jimmy Song'
    priv = HDPrivateKey.from_seed(seed, testnet=True)
    pub = priv.pub
    path = 'm/1/2/3/4'
    self.assertEqual(priv.traverse(path).bech32_address(), pub.traverse(path).bech32_address())
    path = "m/0/1'/2/3'"
    self.assertEqual(priv.traverse(path).bech32_address(), 'EXAMPLE_KEY')
def test_traverse(self):
    seed = b'example@example.com Jimmy Song'
    priv = HDPrivateKey.from_seed(seed, testnet=True)
    pub = priv.pub
    path = 'm/1/2/3/4'
    self.assertEqual(priv.traverse(path).bech32_address(), pub.traverse(path).bech32_address())
    path = "m/0/1'/2/3'"
    self.assertEqual(priv.traverse(path).bech32_address(), 'EXAMPLE_KEY')