def verify_encode(self, test_message, test_vector):
    serialized = tls_message.encode(test_message)
    self.assertEqual(''.join(test_vector), serialized.encode('hex'))
def verify_encode(self, test_message, test_vector):
    serialized = tls_message.encode(test_message)
    self.assertEqual(.join(test_vector), serialized.encode('hex'))