def test_hex_display(self): entity = Entity() address = Address(entity) address_bytes = bytes(address) hex_address = address_bytes.hex() self.assertEqual(hex_address, address.to_hex())
def test_hex_display(self): entity = Entity() address = Address(entity) address_bytes = bytes(address) hex_address = binascii.hexlify(address_bytes).decode() self.assertEqual(hex_address, address.to_hex())