def verify_encode_fails(self, test_message):
    self.assertRaises(tls_message.TLSEncodingError, tls_message.encode, test_message)
def verify_encode_fails(self, test_message):
    self.assertRaises(tls_message.TLSEncodingError, tls_message.encode, test_message)