def test_from_pubkey(self): pubkey = PublicKey(data['pubkey'], data['network']) address = Address.from_public_key(pubkey) assert address == Address.from_string(data['base58h'])