'L{smtp.ESMTPClient.tlsMode} is deprecated.'

def test_esmtpClientTlsModeDeprecationGet(self):

    val = self.clientProtocol.tlsMode
    del val
    warningsShown = self.flushWarnings(offendingFunctions=[self.test_esmtpClientTlsModeDeprecationGet])
    self.assertEqual(len(warningsShown), 1)
    self.assertIdentical(warningsShown[0]['category'], DeprecationWarning)
    self.assertEqual(warningsShown[0]['message'], 'tlsMode    attribute    of    twisted.mail.smtp.ESMTPClient    is    deprecated    since    Twisted    13.0')
